Skip to content

Reorder sequence for execution of tasks - example_adf_run_pipeline DAG #405

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

Merged
merged 1 commit into from
May 31, 2022

Conversation

pankajkoti
Copy link
Collaborator

@pankajkoti pankajkoti commented May 31, 2022

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 and run_pipeline_wait try to execute the
same 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 the
same 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 pipeline
to 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

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` and `run_pipeline_wait` try to execute the
same 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 the
same 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 pipeline
to 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 on whether this
solves the problem. If the problem still persists, we will then need
to spend additional efforts in investigating the issue.
Copy link
Collaborator

@phanikumv phanikumv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the example DAG name in the title

@codecov
Copy link

codecov bot commented May 31, 2022

Codecov Report

Merging #405 (eab6d0a) into main (6e553a2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #405   +/-   ##
=======================================
  Coverage   97.16%   97.16%           
=======================================
  Files          55       55           
  Lines        2893     2893           
=======================================
  Hits         2811     2811           
  Misses         82       82           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6e553a2...eab6d0a. Read the comment docs.

@pankajkoti pankajkoti changed the title Reorder sequence for execution of tasks Reorder sequence for execution of tasks - example_adf_run_pipeline DAG May 31, 2022
@pankajkoti pankajkoti requested a review from phanikumv May 31, 2022 13:00
@phanikumv phanikumv merged commit e636293 into main May 31, 2022
@phanikumv phanikumv deleted the 366-adf-pipeline-issue branch May 31, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants