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
Fixes #26352 - ActiveJob task arguments loading #396
Conversation
@@ -118,7 +118,8 @@ def main_action | |||
else | |||
execution_plan_action.input | |||
end | |||
@main_action = active_job_action(args['job_class'], args['job_arguments']) | |||
args = args['job_data'] || args.slice('job_class') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the tasks created before this change, shouldn't this be:
args = args['job_data'].try { |data| data['arguments'] } || args['job_arguments']
@main_action = active_job_action(args['job_class'], args['arguments'])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right 👍 thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small ask: please add a comment that we need the fallback for job_arguments
for fobs from Dynflow <=1.2.1
, for the future version of us that would wonder why we're doing this here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment, good otherwise
I believe now we are backwards compatible :) |
There is one more occurrence of
|
I have pulled the logic into its method, just left one comment, where I am unsure. |
Thanks @ezr-ondrej |
ActiveJob arguments loading is broken by: Dynflow/dynflow#317