Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
352 views
in Technique[技术] by (71.8m points)

scheduled tasks - Trigger Pipeline B on Monthly schedule and when Pipeline A is completed

I have an import pipeline (Pipeline A) that runs every 2 hours, it imports the Data from local SQL DBs up into my Azure DB.

Part of this data is used with integration into a 3rd party system (that is updated every 2 hours) the other parts of this data are used for Reporting.

I have a Monthly Report Pipeline (Pipeline B) that does the following:

Executes Stored Procedures, Outputs the results to a Blob, then triggers a Logic App to upload the contents of the Blob to the destination.

However, If Pipeline B is triggered whilst Pipeline A is running, then there will be errors.

I would like to create a Monthly trigger for Pipeline B, but make it so that it is only ever run after Pipeline A first completes on the first day of the Month.

Ideas?

question from:https://stackoverflow.com/questions/65877524/trigger-pipeline-b-on-monthly-schedule-and-when-pipeline-a-is-completed

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I think you can excute the Pipeline A manually in the PipielineB.

enter image description here

  1. trigger Pipeline_B_A run monthly.
  2. trigger Pipeline_A run every 2 hours.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...