cron support in node.js App Engine
See original GitHub issueI apologize if this is the wrong place for this, but I am trying to deploy a node.js app to the App Engine with a cron job. I added the cron.yaml file to the app and deployed, but the job never gets executed.
cron.yaml:
cron:
- description: test cron job
url: /api/crontest
schedule: every 1 mins
The endpoint exists in my app and I can hit it directly from the browser, but it never executes from the cron. The only thing I see in the logs is an occasional cron: unrecognized service, but it does not correspond with the one minute frequency.
What am I missing? Is cron supported in the platform?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
cron support in node.js App Engine - Stack Overflow
I am trying to deploy a node.js app to App Engine with a cron job. I added the cron.yaml file to the app...
Read more >Scheduling jobs with cron.yaml - App Engine - Google Cloud
The App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined times or regular intervals. These tasks are...
Read more >Secured Cron Job for Google App Engine fails to start (Node js)
The X-Appengine-Cron header is set internally by Google App Engine. If your request handler finds this header it can trust that the request...
Read more >How to Schedule Cron Jobs with Google Cloud Functions?
Let's go with app engine cron service and cloud functions to arrange and schedule the meetings. It will make our app run fast...
Read more >Scheduling Jobs with cron.yaml | Google Cloud
Scheduling Jobs with cron.yaml | App Engine flexible environment for Node.js docs | Google ... dispatch: - url: '*/tasks/hello_service2' service: service2 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Nice, thanks for coming back to share the answer!
I found the answer. I missed the previous page in the docs (here: https://cloud.google.com/appengine/docs/flexible/java/yaml-configuration-files) that mentioned needing to run
gcloud preview app deploy cron.yaml
.