I was noticing on the recurring jobs example, this is the last line:
self.class.enqueue(args, run_at: @run_again_at)
It seems like we'd want to do something like this instead, right?
Que.transaction do # Instead of Que::Migrations.transaction
self.class.enqueue(args, run_at: @run_again_at)
destroy
end
Should the transaction method be inside the Que::Migrations module?
I was noticing on the recurring jobs example, this is the last line:
It seems like we'd want to do something like this instead, right?
Should the transaction method be inside the Que::Migrations module?