dagu icon indicating copy to clipboard operation
dagu copied to clipboard

[Feature] Built-in execution context variables

Open imkebe opened this issue 10 months ago • 1 comments

I want to create the script that will be executed using handlerOn. It' would be great to have built-in execution context variables for each DAG like:

  • DAG_SCHEDULER_LOG_PATH
  • DAG_EXECUTION_LOG_PATH
  • DAG_REQUEST_ID

to be able to pass them as command args.

handlerOn:
  failure:
    command: "echo There was an error while doing ${DAG_REQUEST_ID} request"

imkebe avatar Apr 10 '24 16:04 imkebe

Thanks for the great suggestion. I think this feature would be really valuable. Let's implement this. To avoid naming conflict, we could use a prefix DAGU_* or something similar.

yohamta avatar Apr 11 '24 04:04 yohamta