Adrien Boutreau
02/01/2021, 3:17 PMJosh Greenhalgh
02/01/2021, 3:22 PMCreateContainer
is a subclass of Task
which takes arguments related to retries - so you should just be able to pass those down?Kyle Moon-Wright
02/01/2021, 5:19 PMfrom datetime import timedelta
container = CreateContainer(
image_name="prefecthq/prefect",
command='''python -c "from prefect import Flow; f = Flow('empty'); f.run()"''',
max_retries=3,
retry_delay=timedelta(seconds=2)
)
Adrien Boutreau
02/01/2021, 8:02 PMKyle Moon-Wright
02/01/2021, 8:19 PMimage_name="prefecthq/prefect:latest"
if you’re pulling from our registryAdrien Boutreau
02/01/2021, 8:37 PMcommand='''python -c "from prefect import Flow; f = Flow('empty');
by making
command='''python -c "from prefect2222 import Flow; f = Flow('empty');
Kyle Moon-Wright
02/01/2021, 8:42 PMAdrien Boutreau
02/01/2021, 8:42 PMKyle Moon-Wright
02/01/2021, 8:44 PM