Closed activestylus closed 7 years ago
Looks like I need to forget about ActiveJob and just use the core lib:
Biggest difference is that I must calculate the delay, but it's not hard:
seconds = send_at - Time.now
Backburner::Worker.enqueue(PostStatusUpdateJob, Post.first.id, delay: seconds)
That said, I will be filing a ticket with Rails core for this issue
perform_later
works as expected, but if I try to addwait_until
to the mix, the job is not executed at the specified timePostStatusUpdateJob.set(wait_until: send_at).perform_later(post)
When this command is run, my backburner queue doesn't react at all. I see no movement in the logs. It's like the job was never requested.
This is what I'm working with:
Am I missing something?