Open tarekziade opened 11 years ago
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::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 :-)
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::name and wiped out when the job is wiped out.