Home  |  Linux  | Mysql  | PHP  | XML
Date:Wed May 10 21:45:40 2006
Subject:Re: Changing metadata inside of a job runner

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.
Navigate in group perl.ipc.dirqueue at sever nntp.perl.org
Previous Next





  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants