How to execute a script in workers/controllers

Issue

  • We would like to execute a custom script on a worker/controller.
  • We would like to execute a custom script on all worker/controller.

Environment

Resolution

To run a script in a worker/controller or in all at the same time you can use dna run LOCAL_FULL_PATH_TO_SCRIPT worker-1 to run the script in the worker-1 or dna run LOCAL_FULL_PATH_TO_SCRIPT worker-* to run it on all workers. you can copy the script in .dna/scripts.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.