To verify that your Cloud Pub/Sub topic is receiving messages from your job:
-
Invoke the following command:
gcloud pubsub subscriptions pull cron-sub --limit 5
-
View the results. You should see output that looks roughly like the following
+-------------+----------------+------------+-----------------------------+
| DATA | MESSAGE_ID | ATTRIBUTES | ACK_ID |
+-------------+----------------+------------+-----------------------------+
| hello cron! | 56344662920621 | | EkwnGERJUytDCypYEU4EISE-... |
+-------------+----------------+------------+-----------------------------+
| hello cron! | 56340561244339 | | EkwnGERJUytDCypYEU4EISE-... |
+-------------+----------------+------------+-----------------------------+
| hello cron! | 56340388879975 | | EkwnGERJUytDCypYEU4EISE-... |
+-------------+----------------+------------+-----------------------------+
| hello cron! | 56337745052761 | | EkwnGERJUytDCypYEU4EISE... |
+-------------+----------------+------------+-----------------------------+
| hello cron! | 56337890896134 | | EkwnGERJUytDCypYEU4EISE-... |
+-------------+----------------+------------+-----------------------------+