For Programmers: Free Programming Magazines  


Home > Archive > IPC DirQueue > May 2006 > Re: Changing metadata inside of a job runner









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Changing metadata inside of a job runner

2006-05-10, 7:13 pm


Duncan Hill writes:
> I'm looking at your IPC::DirQueue module as a solution to my current
> home-grown queue runner, and have a few questions that a brief check of the
> module doesn't answer.
>
> 1) Can the metadata be written to from a job runner? There's no function for
> this, but there's nothing obvious saying 'don't do that'.
> 2) If not, would you consider this feature?
>
> Essentially, the code I'm fitting dq into talks to an SQL database a lot. If
> a log file encounters a failure being parsed, I'd like to be able to tag the
> metadata with a 'don't touch, leper' flag so that other queue runners don't
> try to handle it when it gets returned to the queue. Without the ability to
> change the metadata, all I can do is crank the priority down, and have a
> specialised runner that only picks up low priority items and moves them out
> of the main queue (which would work I suppose).


hi --

Unfortunately not :( Right now, the metadata is written to only
once, at enqueue time, and only read thereafter.

It'd make a good patch, though ;)

--j.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com