Ensure current user and variables are updated when playing a job
What does this MR do and why?
Related to #337063 (closed)
A customer mentioned that sometimes the job user is set inconsistently when a job is manually played.
In this MR we are ensuring that we update the job when it's manually played or raise an exception. The update should always occur and if it's not the case it could be caused by a bad input. See #337063 (comment 729782123)
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
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 Fabio Pitino