Ogaday
04/07/2020, 10:43 AMChris White
04/07/2020, 1:43 PMflow.run(run_on_schedule=False)
with whatever context information you want to pass.
In general, mixing ad-hoc runs with scheduled runs is a better experience when you use the Prefect API (either the newly open sourced prefect server, which requires 0.10.0+, or Prefect Cloud).
And you are correct - some values of context are datetimes and others are strings; this is to support certain values and types that Airflow users would expect. The full list can be found here: https://docs.prefect.io/api/latest/utilities/context.htmlOgaday
04/07/2020, 1:51 PMfoo
and hello
but it prints a timestamp and the date.Chris White
04/07/2020, 1:53 PMflow.run(context=dict(date='foo', my_date=datetime.utcnow(), today='hello'))
Let me know if that does the trickOgaday
04/07/2020, 5:29 PMChris White
04/07/2020, 5:30 PMMarvin
04/07/2020, 5:30 PM