how to fetch payload from dagu api like params ? #534
Unanswered
Narsimha1997
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi, you can pass parameters like this.
Then you can use parameters in the DAG. params: param1 param2
steps:
- name: some task with parameters
command: python main.py $1 $2 or params: ONE=1 TWO=`echo 2`
steps:
- name: some task with parameters
command: python main.py $ONE $TWO Doc: https://dagu.readthedocs.io/en/latest/yaml_format.html#defining-and-using-parameters |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am having scenario like i need to pass payload to dagu and need to fetch payload from start api to tasks so that i can manage do required things.
Can you provide any example ?
And also how to fetch params varibles when command type is python ?
Beta Was this translation helpful? Give feedback.
All reactions