tests.system.providers.google.cloud.pubsub.example_pubsub

Example Airflow DAG that uses Google PubSub services.

Module Contents

tests.system.providers.google.cloud.pubsub.example_pubsub.ENV_ID[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.PROJECT_ID[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.DAG_ID = pubsub[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.TOPIC_ID[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.MESSAGE[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.MESSAGE_TWO[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.echo_cmd = Multiline-String[source]
Show Value
1{% for m in task_instance.xcom_pull('pull_messages') %}
2    echo "AckID: {{ m.get('ackId') }}, Base64-Encoded: {{ m.get('message') }}"
3{% endfor %}
tests.system.providers.google.cloud.pubsub.example_pubsub.create_topic[source]
tests.system.providers.google.cloud.pubsub.example_pubsub.test_run[source]

Was this entry helpful?