1

There are answers on how to schedule tasks on Spring Boot

There are also links on how to create a Cron Job in App Engine

I am using Spring Boot for Google App Engine, so how can I have Cron jobs using Spring Boot?

Mangu
  • 3,160
  • 2
  • 25
  • 42
Sunil Rk
  • 999
  • 6
  • 12
  • 35

1 Answers1

2

The cron service in GAE is simply a scheduler for GET requests to certain URLs handled by the application. From the very cron documentation reference you posted:

A cron job will invoke a URL, using an HTTP GET request, at a given time of day.

So all you have to do is:

  • Configure the schedule of the jobs and the URLs to be invoked
  • Add handlers for those URLs into your app code to perform the necessary actions for the jobs

You can also validate that the GET requests for those URLs are only coming from App Engine.

Mangu
  • 3,160
  • 2
  • 25
  • 42
Dan Cornilescu
  • 39,470
  • 12
  • 57
  • 97