tests.system.google.cloud.tasks.example_tasks
在 Google Cloud 中,一個用於在 Google Cloud Tasks 服務中建立和刪除佇列 (Queues),以及建立、獲取、列出、執行和刪除任務 (Tasks) 的 Airflow DAG 示例。
模組內容
-
tests.system.google.cloud.tasks.example_tasks.ENV_ID[source]
-
tests.system.google.cloud.tasks.example_tasks.DAG_ID = 'cloud_tasks_tasks'[source]
-
tests.system.google.cloud.tasks.example_tasks.timestamp[source]
-
tests.system.google.cloud.tasks.example_tasks.LOCATION = 'us-central1'[source]
-
tests.system.google.cloud.tasks.example_tasks.QUEUE_ID = 'queue-Uninferable-'[source]
-
tests.system.google.cloud.tasks.example_tasks.TASK_NAME = 'task-to-run'[source]
-
tests.system.google.cloud.tasks.example_tasks.TASK[source]
-
tests.system.google.cloud.tasks.example_tasks.generate_random_string()[source]
生成用於佇列和任務名稱的隨機字串。佇列名稱在過去 7 天內不能重複,任務名稱在過去 1 小時內不能重複。
-
tests.system.google.cloud.tasks.example_tasks.test_run[source]