Questions tagged [google-cloud-scheduler]

Google Cloud Scheduler is a fully managed enterprise-grade cron job scheduler.

Google Cloud Scheduler is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations, and more. You can automate everything, including retries in case of failure to reduce manual toil and intervention. Cloud Scheduler even acts as a single pane of glass, allowing you to manage all your automation tasks from one place.

Product Page

298 questions
9
votes
4 answers

How do i send an email alert if my Google Cloud Scheduler job failed?

I have schedule a HTTP call type job using Google Cloud Scheduler. How do I send out email alert if the job failed? I have read the Cloud Scheduler documentation, and google around but the answer is not obvious. I had also attempted the stackdriver…
8
votes
2 answers

How to schedule a docker run on google cloud

There are 3 batches in my project. I have put all 3 batches in a single docker image. Now to run any particular batch I invoke the docker run with command line argument, which is taken into account by a shell script and launches appropriate batch…
7
votes
5 answers

GCP auto shutdown and startup using Google Cloud Schedulers

I want to start/stop a set of Compute engine instances in Google Cloud Platform using Google Cloud Scheduler. How can I do it?
7
votes
1 answer

View response body on Google Cloud Scheduler logs

This article says to simply click view under the Logs column to see the output of Google Cloud Scheduler logs. However, while I can see the status code of a HTTP scheduled function, I cannot see the response. For instance, this request normally…
6
votes
3 answers

GCP Cloud Scheduler throws ERROR for a HTTP targettype

I have created a GCP Cloud Scheduler job to run every 15 minutes. It is supposed to call an API from my Node js application. In the console the job definition looks like this: Description: A job Frequency: */15 * * * * Timezone: Central Standard…
Bill Soranno
  • 63
  • 1
  • 1
  • 6
6
votes
2 answers

Scheduling cron jobs on Google Cloud DataProc

I currently have a PySpark job that is deployed on a DataProc cluster (1 master & 4 worker nodes with sufficient cores and memory). This job runs on millions of records and performs an expensive computation (Point in Polygon). I am able to…
6
votes
3 answers

Unable to use json body of gcp cloud scheduler in cloud function as parameter value?

I have a cloud scheduler which I am using to trigger my cloud function as http call, In my cloud function I would like to form a query (which should be dynamic). To do so, I am passing some parameter from cloud scheduler (Json Body), but when I…
5
votes
2 answers

Why do we need Pub/Sub with Cloud Scheduler in GCP?

I am reading this https://cloud.google.com/scheduler/docs/tut-pub-sub They use the setup like below: Cloud Scheduler -> PubSub -> Cloud Function-> external Service and If I have a cron job for calling a service once a day, should I still need this…
5
votes
0 answers

How to setup Google Cloud Scheduler to run Google Colab?

I've read a few threads here about how to schedule a Google Colab notebook to run and they all say use Google Scheduler, but while creating the Scheduler job it's completely not intuitive or obvious what to do or how to connect the job to the colab…
5
votes
1 answer

How to fix failure to create function when deploying functions.pubsub.schedule

When I attempt to deploy the functions.pubsub.schedule like this on index.js: const functions = firebase.functions; var cronCount = 0; exports.processPostsCron = functions.pubsub.schedule('* * * * *').onRun(context => { cronCount++; …
4
votes
1 answer

Why is google cloud scheduler not respecting attemptDeadline

I have created an http cloud scheduler task. I'm expecting it to have a maximum run time of 5 minutes. However my task is reporting DEADLINE_EXCEEDED after exactly 1 minute. When I run gcloud scheduler jobs describe MySyncTask to view my task it…
Taylor j. Eke
  • 255
  • 1
  • 3
  • 9
4
votes
1 answer

How to add a JSON body on a HTTP POST request made with Cloud Scheduler? Will it add the "Content-Type": "application/json" header?

When you are creating a new cron job in Cloud Scheduler: What should I add in the body field, in order to pass a parameter value: What is the specification of that field? Should I write JSON in there? Let's say I want to pass this JSON object: { …
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
4
votes
1 answer

Not able to deploy PubSub function in firebase cloud functions

I was trying to deploy a PubSub function: exports.sendReminder = functions.pubsub.schedule('0 6 * * *').timeZone('Asia/Kolkata').onRun((context) => { console.log('Wake up! It\'s 6AM'); return null; } ); Cloud schedular API…
4
votes
1 answer

How to prevent cloud scheduler from triggering a function more than once?

I'm triggering a cloud function every minute with cloud scheduler [* * * * *]. The Stackdriver logs indicate the function appears to have been triggered and run twice in the same minute. Is this possible? PubSub promises at least once delivery but…
4
votes
3 answers

Related Scheduler Job not created-Firebase Scheduled Function

I have written a scheduled function in node.js using typescript that successfully deploys.The related pub/sub topic gets created automatically but somehow the related scheduler job does not. This is even after getting these lines i scheduler:…
1
2
3
19 20