Using Trigger Files

Some production scripts have dependencies such as a requirement that script B cannot run at the same time as script A. You can use trigger files to indicate if production scripts are running or have completed. For example:

  • At the beginning of script A, add a Trigger node that shows that the script is running.

  • Next, run the job.

  • When the job completes, use a delete node to delete the running trigger.

  • Add another Trigger node to show that the script is complete.

Because script B cannot run while script A is running, its dependency can determine if script A is running, and if so, script B does not start until script A completes.

Click the following link to download a Sample Project that uses trigger files. You can use this project to duplicate the production script used in the examples on this page.

Download Sample Project

This example is partly based on a Dimensional Insight Knowledge Forum video, available at: Using Triggers in Production.