Yufei Li
08/16/2023, 7:51 PM"${sys.now()}"
but it didn't pass into Prefect. In the future. we'd create a schedule for this workflow, and each time it's triggered, the end_date
parameter should be the timestamp as the current triggered time.
- name: new_workflow
# version: null
# tags: []
# description: null
schedule: null
entrypoint: flows/tests/example.py:example
parameters: {
"start_date": "2023-03-01T08:00:00.000Z"
"end_date": "${sys.now()}"
}
work_pool: *work_pool
Christopher Boyd
08/16/2023, 8:47 PMYufei Li
08/23/2023, 3:49 PMprefect.variables.current_date
, but when I reference this in the parameter section as below, if failed to load.
- name: new_workflow
# version: null
# tags: []
# description: null
schedule: null
entrypoint: flows/tests/example.py:example
parameters: {
"start_date": "2023-03-01T08:00:00.000Z"
"end_date": "{{ prefect.variables.current_date }}"
}
work_pool: *work_pool
Christopher Boyd
08/23/2023, 4:31 PM