Merge pull request #10360 from mvdbeek/skip_workflow_invocation_step_update_subquery

[20.09] Don't use subquery to update workflow invocation step update time
This commit is contained in:
John Chilton
2020-10-05 13:04:07 -04:00
committed by GitHub
+1 -5
View File
@@ -1158,11 +1158,7 @@ class Job(JobLike, UsesCreateAndUpdateTime, Dictifiable, RepresentById):
''', '''
UPDATE workflow_invocation_step
SET update_time = :update_time
WHERE id in (
SELECT workflow_invocation_step.id
FROM workflow_invocation_step wis
WHERE wis.job_id = :job_id
);
WHERE job_id = :job_id;
''']
sa_session = object_session(self)
params = {