Skip to content

Add deprecation warnings for deprecated patterns#139

Merged
fractaledmind merged 6 commits intomainfrom
deprecations
Jan 25, 2026
Merged

Add deprecation warnings for deprecated patterns#139
fractaledmind merged 6 commits intomainfrom
deprecations

Conversation

@fractaledmind
Copy link
Owner

  • Add AcidicJob.deprecator using ActiveSupport::Deprecation
  • Deprecate halt_step! in favor of halt_workflow!
  • Deprecate workflow definitions without 'steps' key
  • Deprecate old 'FINISHED' recovery point value

All deprecated features will be removed in AcidicJob 1.1.

- Add AcidicJob.deprecator using ActiveSupport::Deprecation
- Deprecate halt_step! in favor of halt_workflow!
- Deprecate workflow definitions without 'steps' key
- Deprecate old 'FINISHED' recovery point value

All deprecated features will be removed in AcidicJob 1.1.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds proper deprecation warnings for features that will be removed in AcidicJob 1.1, replacing TODO comments with actual deprecation infrastructure.

Changes:

  • Added AcidicJob.deprecator using ActiveSupport::Deprecation for standardized deprecation warnings
  • Added deprecation warnings for the old workflow definition format (without 'steps' key)
  • Added deprecation warning for the old 'FINISHED' recovery point value
  • Added deprecation warning for halt_step! method in favor of halt_workflow!

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
lib/acidic_job.rb Added deprecator class method that creates an ActiveSupport::Deprecation instance for version 1.1
lib/acidic_job/workflow.rb Added deprecation warnings for workflows without 'steps' key and for halt_step! method
app/models/acidic_job/execution.rb Added deprecation warnings for old 'FINISHED' recovery point value and workflows without 'steps' key

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

fractaledmind and others added 5 commits January 26, 2026 00:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Add AcidicJob.serializable_transaction_max_retries config (default: 3)
- Add SerializableTransactionRetriesExhaustedError
- Extract find_or_create_execution method with built-in retry logic
- Catch ActiveRecord::SerializationFailure and ActiveRecord::Deadlocked
- Implement exponential backoff (50ms, 100ms, 200ms, etc.)

Resolves #91
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@fractaledmind fractaledmind merged commit ef667a1 into main Jan 25, 2026
44 checks passed
@fractaledmind fractaledmind deleted the deprecations branch January 25, 2026 23:48
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.

2 participants