Module: Workhorse::ActiveJobExtension::ClassMethods
- Defined in:
- lib/workhorse/active_job_extension.rb
Instance Method Summary collapse
-
#skip_tx ⇒ void
Marks this job class to skip database transactions during execution.
-
#skip_tx? ⇒ Boolean
Checks if this job class should skip database transactions.
Instance Method Details
#skip_tx ⇒ void
This method returns an undefined value.
Marks this job class to skip database transactions during execution. Use this for jobs that manage their own transactions or have long-running operations that should not be wrapped in a transaction.
17 18 19 |
# File 'lib/workhorse/active_job_extension.rb', line 17 def skip_tx self._skip_tx = true end |
#skip_tx? ⇒ Boolean
Checks if this job class should skip database transactions.
24 25 26 |
# File 'lib/workhorse/active_job_extension.rb', line 24 def skip_tx? _skip_tx end |