Skip to content

Version 1.1. Update - #1

Merged
RStankov merged 1 commit into
mainfrom
updates
Sep 7, 2026
Merged

RStankov merged 1 commit into
mainfrom
updates

Conversation

@RStankov

@RStankov RStankov commented Sep 7, 2026

Copy link
Copy Markdown
Owner
  • Removed the scheduling state and the AngryBatch::Batch.scheduling scope; new batches start as pending
  • New migration — run rails generate angry_batch:install and rails db:migrate when upgrading
  • Jobs and handlers can access their batch via batch
  • Add jobs to a running batch with batch.enqueue; a finished batch raises AngryBatch::BatchFinishedError
  • Attach metadata: to a batch, readable via batch.metadata
  • Track progress with progress, pending_jobs_count, completed_jobs_count and failed_jobs_count
  • perform_later returns the AngryBatch::Batch record
  • Jobs are enqueued after the surrounding transaction commits (Rails 7.2+)
  • A job that cannot be enqueued raises ActiveJob::EnqueueError instead of being silently dropped
  • Bug fixes

@RStankov
RStankov merged commit c711870 into main Sep 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant