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

Feature Request: Record the server a job was last run on #60

Closed
timhaines opened this issue May 13, 2014 · 8 comments
Closed

Feature Request: Record the server a job was last run on #60

timhaines opened this issue May 13, 2014 · 8 comments
Labels

Comments

@timhaines
Copy link

I'm not quite sure how to structure this, but I'd like to be able to look up the job records, and see which server a job was last run on.

I'd like the hostname (os.hostname) and process id (process.pid) records. Perhaps to keep this flexible a callback could be provided which sets the server identifier for the record update?

This will help with troubleshooting - tracking what was run where.

@rschmukler
Copy link
Collaborator

@timhaines I like the idea. What if we made it so that you could configure the instance with agenda.name = os.hostname + process.pid and then we use agenda.name to set lastModifiedBy on the database?

@timhaines
Copy link
Author

@rschmukler sounds perfect.

@rschmukler
Copy link
Collaborator

Released in 0.6.9. Thanks for the feedback @timhaines.

@timhaines
Copy link
Author

@rschmukler I don't think the release is setting lastModifiedBy with the name?

@rschmukler
Copy link
Collaborator

@timhaines did you configure the name? agenda.name(os.hostname + '-' + process.pid);. I ended up using a configuration method so it'd be chainable...

@timhaines
Copy link
Author

@rschmukler Yes.

@rschmukler
Copy link
Collaborator

@timhaines haha woops, I forgot to merge in the branch I was on before releasing. Now it should be good on 0.6.10. Sorry about that.

@timhaines
Copy link
Author

@rschmukler Oh, and there's the readme docs too. Nice, thanks for the quick implementation!

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

No branches or pull requests

2 participants