tests.system.docker.example_docker_copy_data

这个示例演示了如何“监听目录”,移动新文件并使用 Docker 容器打印出来。使用了以下操作符:DockerOperator、BashOperator 和 ShortCircuitOperator。待办:审查工作流,根据你的环境进行更改并启用代码。

属性

ENV_ID

DAG_ID

locate_file_cmd

test_run

模块内容

tests.system.docker.example_docker_copy_data.ENV_ID[源]
tests.system.docker.example_docker_copy_data.DAG_ID = 'docker_sample_copy_data'[源]
tests.system.docker.example_docker_copy_data.locate_file_cmd = Multiline-String[源]
显示值
"""
        sleep 10
        find $LOCATION -type f -printf "%f\n" | head -1
    """
tests.system.docker.example_docker_copy_data.test_run[源]

此条目有帮助吗?