On Sat, 26 Jun 2010 16:26:16 -0400, brion wrote: > What would be great would be if we can say "ok this queue item failed, but > can we try it again in 15 seconds? or 15 minutes? or 12 hours?"
TheSchwartz¹ does this by having a "run_after" field on each job: http://search.cpan.org/dist/TheSchwartz/lib/TheSchwartz/Job.pm#run_after http://search.cpan.org/dist/TheSchwartz/lib/TheSchwartz/Worker.pm#$class-%3Eretry_delay%28_$num_failures_%29 When workers pick jobs off the queue they only look at the ones with "run_after" in the past. (How long to wait is up to the workers (using exponential backoff with a fixed max-time seems like a good default strategy)). Best regards, Adam -- "My internal clock is on Tokyo time." Adam Sjøgren a...@koldfront.dk _______________________________________________ StatusNet-dev mailing list StatusNet-dev@lists.status.net http://lists.status.net/mailman/listinfo/statusnet-dev