blob: b3518d1a595f757feab0adb776a0fdb8515230bb [file] [log] [blame]
:py:mod:`tests.system.providers.google.cloud.tasks.example_queue`
=================================================================
.. py:module:: tests.system.providers.google.cloud.tasks.example_queue
.. autoapi-nested-parse::
Example Airflow DAG that creates, gets, lists, updates, purges, pauses, resumes
and deletes Queues in the Google Cloud Tasks service in the Google Cloud.
Required setup:
- GCP_APP_ENGINE_LOCATION: GCP Project's App Engine location `gcloud app describe | grep locationId`.
Module Contents
---------------
Functions
~~~~~~~~~
.. autoapisummary::
tests.system.providers.google.cloud.tasks.example_queue.generate_random_string
Attributes
~~~~~~~~~~
.. autoapisummary::
tests.system.providers.google.cloud.tasks.example_queue.ENV_ID
tests.system.providers.google.cloud.tasks.example_queue.DAG_ID
tests.system.providers.google.cloud.tasks.example_queue.LOCATION
tests.system.providers.google.cloud.tasks.example_queue.QUEUE_ID
tests.system.providers.google.cloud.tasks.example_queue.test_run
.. py:data:: ENV_ID
.. py:data:: DAG_ID
:value: 'cloud_tasks_queue'
.. py:data:: LOCATION
.. py:data:: QUEUE_ID
.. py:function:: generate_random_string()
Generate random string for queue and task names.
Queue name cannot be repeated in preceding 7 days and
task name in the last 1 hour.
.. py:data:: test_run