Tip: Job Script environment variables

Cylc documentation provides a list of all the variables Cylc adds to Job scripts:

My favourite reference page in the Cylc Documentation

Possible use cases include:

  • Use CYLC_VERBOSE and/or CYLC_DEBUG to help choose the logging level for your app.
  • Find out where your workflow is storing files with CYLC_WORKFLOW_<RUN/SHARE>_DIR.
  • Find out where your task is outputting logs with CYLC_TASK_LOG_DIR. You can even add extra log files which Cylc Review will see.
  • Have your task behave differently if it’s a retry with CYLC_TASK_SUBMIT_NUMBER.