-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Allow joining executions to jobs scoped by state #886
Allow joining executions to jobs scoped by state #886
Conversation
To do this, we need arel to be able to track the current table name for jobs (otherwise we get ambiguous column errors), so we construct arel nodes instead of using raw sql strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thank you! I just pushed up some fixes for some naming collisions and I'll merge.
Ah nice I was just about to fix that :) In case it interests you, this is going towards rubygems/rubygems.org#3582, which adds some statsd instrumentation that is aimed at a more job-centric latency than an individual execution one (basically, we had a few days of retries pile up when we switched one job over to GoodJob and our dashboard just showed the queue depth, but not the fast that some of them shouldve been run days ago) |
Yikes! Sorry that the dashboard gave a false sense that everything was fine 😬 I want to improve those charts in #438 (I have some bad SQL in #888). For queue latency I'm thinking the query needs to be something like |
Ah no it wasn't your dashboard :) it was the one I built off of our statsd metrics, and I knew with was wrong |
Well, my Dashboard also has that problem 😭 This and #885 was released in https://github.com/bensheldon/good_job/releases/tag/v3.14.1 |
@bensheldon @segiddins hang about, can you make this change also for I'm asking as I need to update my patch here: And would be far easier if i can just override the |
@ollym oops, sorry about that! I'll make that change today. |
To do this, we need arel to be able to track the current table name for jobs (otherwise we get ambiguous column errors), so we construct arel nodes instead of using raw sql strings
This allows me to do something like: