bbangert / retools

Redis Tools
MIT License
138 stars 41 forks source link

maintain jobs metadata #13

Open tarekziade opened 11 years ago

tarekziade commented 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.

bbangert commented 11 years ago

I'm totally open to having a good chunk of that merged into retools.Queue. :)

tarekziade commented 11 years ago

okay

msabramo commented 9 years ago

Do it :-)