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

Add Retries field into views #204

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MacLove13
Copy link

Add Retries to Index at failed jobs and show job.

image image

@MacLove13 MacLove13 changed the title Add Retries info Add Retries field Nov 12, 2024
@MacLove13 MacLove13 changed the title Add Retries field Add Retries field into views Nov 12, 2024
@MacLove13
Copy link
Author

@rosa When you have time to take a look at this PR

@@ -20,6 +20,10 @@ def serialize
end
end

def retries
self.arguments.first["executions"] || 0
Copy link
Member

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).

Copy link
Author

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

@rosa
Copy link
Member

rosa commented Nov 30, 2024

Sorry @MacLove13, I hadn't realised it was ready for review again 😳

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

Successfully merging this pull request may close these issues.

2 participants