How to verify that Cloud Pub Sub actually got the message

0 votes
Nov 6, 2019 in GCP by anonymous
• 19,610 points
1,455 views

1 answer to this question.

0 votes

To verify that your Cloud Pub/Sub topic is receiving messages from your job:

  1. Invoke the following command:

     gcloud pubsub subscriptions pull cron-sub --limit 5
  2. 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-... |
     +-------------+----------------+------------+-----------------------------+
answered Nov 6, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer
+1 vote
1 answer

How to export a custom image to the cloud storage?

The preferred way to export an image ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 59,230 points
1,960 views
0 votes
1 answer
0 votes
1 answer

How to verify that my cluster is using routes?

List your cluster nodes: kubectl get nodes The output ...READ MORE

answered Oct 31, 2019 in GCP by Sirajul
• 59,230 points
593 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points
2,613 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,020 views
0 votes
1 answer

How to set up and use Pub/Sub Notifications for Cloud Storage?

The following steps add a notification configuration to your ...READ MORE

answered Nov 22, 2019 in GCP by Sirajul
• 59,230 points
2,090 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP