retools
retools copied to clipboard
maintain jobs metadata
If you look at what I did so far with retools at https://github.com/mozilla-services/marteau/blob/master/marteau/queue.py
I had to manually maintain new values in redis to keep track of info about a job. For instance the process stderr/stdout output and the process id.
One simple thing that could be done is to have a way to set/get values using methods in the Job class.
Maybe:
_Job.set_metadata(name, value)_
_Job.get_metadata(name, value)_
Those would be stored under retools:<job_id>:name and wiped out when the job is wiped out.
I'm totally open to having a good chunk of that merged into retools.Queue. :)
okay
Do it :-)