Subject: | $job->declined() should allow a timestamp/timeout |
Date: | Fri, 27 Aug 2010 06:27:02 -0700 (PDT) |
To: | bug-TheSchwartz [...] rt.cpan.org |
From: | Deives Michellis <dmichellis [...] yahoo.com> |
When declining a job, we could/should be able to say for how long the system should wait before trying it again. Waiting for one full hour is not very nice :(
Currently, the only way I figured out is:
$job->grabbed_until(time() + rand(5));
$job->declined();
$job->driver->update($job);
Having to manually call grabbed_until and then an update on the database doesnt seem the best way to handle this. "declined" should do it for us, no?
If there are proper ways to achieve such behaviour, please let me now.
Thank you, and great job with TheSchwartz!