如何在 Prefect 流程中覆盖 ECSRun 中的任务定义

问题描述

我有以下带有 ECSRun 运行配置的完美流程。在注册流程时,我收到以下错误。如何覆盖任务定义参数

错误

Parameter validation Failed: Invalid type for parameter containerDeFinitions[0].logConfiguration.options.awslogs-create-group,value: True,type: <class 'bool'>,valid types: <class 'str'>

代码

config = ECSRun(cpu=512,memory=1024,env={
            'FLOW_NAME': 'my-prefect'
        })

executor = LocaldaskExecutor()

result = S3Result(bucket=prefect_bucket)

store = Docker(
    registry_url="...",image_name="my_prefect",image_tag="my_prefect,base_image="...",python_dependencies=['boto3'],files={
    },path="my_prefect.py",stored_as_script=True,ignore_healthchecks=True
)

with Flow("my-prefect",storage=store,run_config=config,result=result,executor=executor
) as flow:

    raw = get_data()
    df = transform_data(raw)
    save_data(df)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)