Assign job token when scheduling the job
What does this MR do and why?
Related to #349877 and &7290 (comment 1153949169)
This should speed up the pipeline creation service because it removes the assignment of job tokens from the service and delays it until the job is executed. This should also slow the growth of the tokens index because we don't assign tokens for jobs that will not be executed(i.e. skipped
ones).
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Marius Bobin