I'm implementing a distributed pool of workers in Go and everything is working just fine BUT ... always it's room the new ideas and enhancements!
My server need a job to be finished (from the producer's point of view) in no more than 10 seconds! If no worker was able to reserve & do the job in less than 10 seconds, the job should be abandoned! That was forcing me to do some extra work of sending also the <job server time> information and if the worker found that the job is "too old", it just silently delete him! But that means that the two machines, the producer and worker should be exactly time synchronized! :-( That would be just perfect, and it probably help in a lot of other cases, if the beanstalk queue manager trigger automatically the job deletion after <nrsec> ! So ... I think that the new command : *delete-after <job-id> <nrsec>* would be not too far into the benstalk philosophy! Another way to solve that kind of problems might be another command, *put-timeout <priority> <delay> <time-to-run> <time-to-live>* that would mean: put the job into the queue with already knew parameters (priority, delay, time-to-run) but adding a new integer, *<time-to-live>*in seconds that would do the same thing, automatically delete the job if not finished in the <time-to-live> time window! The second command would be an advantage that it would resolve the problem just in one single step, instead of two ( *put *then *delete-after* ) in the first example! Thanks for your time and ... *KR , thanks for the extremely usefull piece of software that solve our problem!* I should mention that I have experimented gearman before beanstalkd but the Go driver for gearman, (just a single implementation) :-( was not running reliably! Teo -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/beanstalk-talk. For more options, visit https://groups.google.com/groups/opt_out.
