question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cron support in node.js App Engine

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stephenpluspluscommented, Jun 10, 2016

Nice, thanks for coming back to share the answer!

0reactions
bamapookiecommented, Jun 10, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found