Hi Keith, That's actually the reason why I want beanstalk to do it. We plan to put quite a few jobs in the queue at a very fast pace. We want to make sure that we don't run out of memory if the worker processing them isn't fast enough. They're not critical jobs, so we don't mind losing a few. Jobs in other tubes are critical, however.
Is there a better to achieve this? Carl On Feb 9, 4:41 pm, Keith Rarick <[email protected]> wrote: > On Tue, Feb 9, 2010 at 9:33 AM, Carl <[email protected]> wrote: > > Is there a way for jobs to auto-destruct after x minutes? For example, > > if put a job on the queue and nobody reserves/deletes it, the job > > would delete itself from the queue after an hour. > > Clients can do this pretty easily without extra help from beanstalkd. > Just put an expiration timestamp in the job payload and make your > workers delete expired without processing them. > > kr -- You received this message because you are subscribed to the Google Groups "beanstalk-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/beanstalk-talk?hl=en.
