Reorder sequence for execution of tasks - example_adf_run_pipeline DAG #405
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.
I am unable to reproduce issue #366 locally after trying multiple
times. Looking at the code, I am understanding that the
run_pipeline_no_wait
andrun_pipeline_wait
try to execute thesame pipeline with same name and resources. The
run_pipeline_no_wait
tasks starts the pipeline and does not wait for the pipeline to finish
before marking the task as success. My hunch here is that since
the pipeline launched by
run_pipeline_no_wait
is still in progress,another immediate attempt by
run_pipeline_wait
task to start thesame pipeline is the reason for the failure of the task observed in
issue #366. Hence, I am reordering the task sequence so that
run_pipeline_wait
task runs first; the task waits for the pipelineto finish before marking the task as success and then we launch
the
run_pipeline_no_wait
task as the downstream task.I would like to push this commit & merge to main so that we can
observe in our Astro Cloud deployment's master DAG run on whether this
solves the problem. If the problem still persists, we will then need
to spend additional efforts in investigating the issue.
part of: #366