Skip to content

Follow up on Active Job Continuations PR feedback - #55151

Merged
byroot merged 4 commits into
rails:mainfrom
djmb:active-job-continuations-2
Jun 4, 2025
Merged

byroot merged 4 commits into
rails:mainfrom
djmb:active-job-continuations-2

Conversation

@djmb

@djmb djmb commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Addressing feedback from @byroot on #55127

  • Make ActiveJob::Instrumentation#instrument public with :nodoc: to avoid send
  • Rescue NoMethodError to avoid responds_to? calls in Step#advance!
  • Inline test jobs into the continuation test case

djmb added 4 commits June 4, 2025 11:13
The common case is that the class will implement `succ`, so catch
NoMethodError's instead to avoid the repeated calls to `respond_to?`.

Also add test coverage for advancing cursors.
@byroot
byroot merged commit fc55e5b into rails:main Jun 4, 2025
@byroot

byroot commented Jun 4, 2025

Copy link
Copy Markdown
Member

Thank you!

@djmb djmb mentioned this pull request Jun 9, 2025
djmb added a commit to djmb/rails that referenced this pull request Jun 10, 2025
Follow up to rails#55127 and rails#55151

- Instrument steps in a block so that runtime is recorded
  (matching perform/perform_started)
- Allow job resumption configuration - max_resumptions, resume_options,
  resume_errors_after_advancing
- Add Active Record Railtie to prevent checkpoints in database
  transactions
- Checkpoint before each step except the first, rather than after
  each step.
- Error if order of completed steps changes when re-running
jeremy pushed a commit that referenced this pull request Jun 10, 2025
Follow up to #55127 and #55151

- Instrument steps in a block so that runtime is recorded
  (matching perform/perform_started)
- Allow job resumption configuration - max_resumptions, resume_options,
  resume_errors_after_advancing
- Add Active Record Railtie to prevent checkpoints in database
  transactions
- Checkpoint before each step except the first, rather than after
  each step.
- Error if order of completed steps changes when re-running
Ridhwana pushed a commit to Ridhwana/rails that referenced this pull request Jun 17, 2025
Follow up to rails#55127 and rails#55151

- Instrument steps in a block so that runtime is recorded
  (matching perform/perform_started)
- Allow job resumption configuration - max_resumptions, resume_options,
  resume_errors_after_advancing
- Add Active Record Railtie to prevent checkpoints in database
  transactions
- Checkpoint before each step except the first, rather than after
  each step.
- Error if order of completed steps changes when re-running
bensheldon pushed a commit to bensheldon/rails that referenced this pull request Jun 17, 2025
Follow up to rails#55127 and rails#55151

- Instrument steps in a block so that runtime is recorded
  (matching perform/perform_started)
- Allow job resumption configuration - max_resumptions, resume_options,
  resume_errors_after_advancing
- Add Active Record Railtie to prevent checkpoints in database
  transactions
- Checkpoint before each step except the first, rather than after
  each step.
- Error if order of completed steps changes when re-running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants