tests.system.docker.example_docker_copy_data

這個範例「監聽目錄」。移動新檔案並列印出來,使用 docker 容器。以下運算子正在被使用:DockerOperator、BashOperator & ShortCircuitOperator。待辦事項:檢閱工作流程,根據您的環境進行相應的更改並啟用程式碼。

模組內容

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 = 多行字串[原始碼]
顯示值
"""
        sleep 10
        find {{params.source_location}} -type f  -printf "%f
" | head -1
    """
tests.system.docker.example_docker_copy_data.test_run[原始碼]

這個條目有幫助嗎?