samsondav / rihanna

Rihanna is a high performance postgres-backed job queue for Elixir
MIT License
439 stars 47 forks source link

Returning {:reenqueue, due_at} from job removes job from table #91

Closed satyavh closed 4 years ago

satyavh commented 4 years ago

Reproduce;

schedule a job Rihanna.schedule(MyJob, [attrs], at: due_at), with due_at a datetime as per the docs.

from that job, return {:reenqueue, due_at}, with due_at a datetime as per the docs.

The job is now being removed from the db. Expected behavior is that the new due_at should be set in the table on the job.

samsondav commented 4 years ago

@satyavh Thanks for the bug report! Can you go into a little more detail? Since due_at is working perfectly for us.

tpitale commented 4 years ago

@satyavh Is this not creating a new job … it's just removing work? I can't seem to reproduce. Maybe if you had an example little project?

tpitale commented 4 years ago

Closing as no reply.