retools icon indicating copy to clipboard operation
retools copied to clipboard

maintain jobs metadata

Open tarekziade opened this issue 12 years ago • 3 comments

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.

tarekziade avatar Aug 07 '12 14:08 tarekziade

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

bbangert avatar Apr 24 '13 23:04 bbangert

okay

tarekziade avatar Apr 26 '13 10:04 tarekziade

Do it :-)

msabramo avatar Oct 26 '14 22:10 msabramo