-
Notifications
You must be signed in to change notification settings - Fork 188
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
Add que_jobs.created_at ? #33
Comments
I thought a while ago about adding the usual created_at and updated_at (effectively ran_at) timestamps, but felt that all the information I'd really want out of them I'd already be getting from the error_count. I'm open to adding them if you can think of a case where they'd be useful. I'm generally hesitant to make the jobs table any wider than it needs to be, but it's only 16 bytes. |
I want to regularly run a health check to see if workers are frozen. My plan is to query count of jobs which are created more than 20 mins ago. If returned number is not 0, I would assume workers not healthy. Is there anyway you can achieve the same check with run_at but not missing the never ran jobs? Cheers. |
You can add your own created_at column if you really want to ( On Monday, October 17, 2016, Ivan Wang notifications@github.com wrote:
|
Not sure if it would be helpful to have a timestamp that indicates when the job was created. Possibly when it was last ran as well.
I suppose you could figure that out from the retry count and the retry interval though..
Thoughts?
The text was updated successfully, but these errors were encountered: