Skip to content

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

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