Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintain jobs metadata #13

Open
tarekziade opened this issue Aug 7, 2012 · 3 comments
Open

maintain jobs metadata #13

tarekziade opened this issue Aug 7, 2012 · 3 comments

Comments

@tarekziade
Copy link
Contributor

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.

@bbangert
Copy link
Owner

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

@tarekziade
Copy link
Contributor Author

okay

@msabramo
Copy link
Contributor

Do it :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants