Hi all, i have this problem. When i use datetime or pendulum library, and then register a flow, this will always take register datetime , not the current time of the running flow.
My code. Any suggest?
You probably want to either:
1. define str_date and cron_now inside the task itself
2. define str_date and cron_now in the actual flow (inside the context manager)
Prefect is functioning as expected here, the task is executing and using a pre-defined global variable.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.