Hi Flowrun values is same when i call the task fr...
# prefect-community
v
Hi Flowrun values is same when i call the task from other task . i want generate multiple flow run for each call to task
k
create_flow_run
takes a
idempotency_key
. You need to supply different ones to each call to spin a new flow run. The same key does not trigger a new flow run
v
can i generate new flowid in loop
whenever i call this task . i want new flow shd be generate
k
pass in an idempotency_key based on the datetime as a string and it will kick off new runs
create_flow_run.run(…, idempotency_key=str(datetime.datetime.now()))
or something like that so it will always be unique during the loop
v
great