We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed9160 commit ab8ee89Copy full SHA for ab8ee89
app/models/solid_queue/job_batch.rb
@@ -71,6 +71,8 @@ def as_active_job(active_job_klass)
71
72
# Instance-level enqueue
73
def enqueue(attributes = {})
74
+ raise "You cannot enqueue a batch that is already finished" if finished?
75
+
76
previous_batch_id = self.class.current_batch_id.presence || nil
77
78
transaction do
0 commit comments