Display job reexecutions and job id #225
Open
+23
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background / problem
There are some things that are hard to distinguish at first glance regarding job instances, executions and reexecutions. I think a factor is that I am not used to the terminology / internals, since I mostly used sidekiq.
An example:
Here you can't see to what instance these jobs belong. Three may be related to
a759850e-3b87-44be-ba63-3d98ab92771b
and one toc24aa402-b669-437c-80ea-e3b603e87dc2
. Knowing the instance can help understand that the same job (instance) has been reexecuted multiple times because there was an exception.Sometimes when you click one of these "finished jobs", you'll land in a job with the
finished
label, while in others you'll go to a scheduled job (because it's still being reexecuted due to an exception). It's also a bit surprising to me that these are called "jobs", but we see multiple rows for the same job instance.Then in scheduled jobs, you can't see if a job is part of a reexecution or not
Changes
Added the first part of the job id to the list. This helps understanding a bit reexecutions
Change:
Added a reexecution label in the jobs in finished/scheduled:
Change:
and in the scheduled view:
Change:
Questions/Asks
I'm not sure if it fits the terminology, but wouldn't
Finished job executions
fit better thanFinished jobs
? There are multiple rows for the same job instance.I don't mind changes to this PR, so if it can serve as a starting point, feel free to modify it (styles or anything) or create a new one 🙏.
I think it'd be nice to show as well in the
Finished jobs
list if a job is 'done done' or if it's still being reexecuted / failed / blocked. But with just the informationjob
has, I didn't see a way.