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]