-
Notifications
You must be signed in to change notification settings - Fork 75
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 Retries field into views #204
base: main
Are you sure you want to change the base?
Add Retries field into views #204
Conversation
app/views/mission_control/jobs/jobs/_general_information.html.erb
Outdated
Show resolved
Hide resolved
@rosa When you have time to take a look at this PR |
lib/active_job/job_proxy.rb
Outdated
@@ -20,6 +20,10 @@ def serialize | |||
end | |||
end | |||
|
|||
def retries | |||
self.arguments.first["executions"] || 0 |
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.
Hmmm... I have two questions about this... first, do we need self
? Second, does this work in general? 🤔 This extends ActiveJob::Base
, which means arguments
are the deserialized job arguments (which probably won't be deserialized here yet, because they're lazily deserialized when they're needed).
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.
in fact the self was not necessary.
And yes, it works, at least it is working on the screens where I applied it lol
Sorry @MacLove13, I hadn't realised it was ready for review again 😳 |
Add Retries to Index at failed jobs and show job.