How can I make a cron.yaml file to run python script every hour for google cloud app engine

DeadSec

So I have this in my cron.yaml:

cron:
- description: "Google analytics data collection"
  url: /usr/bin/python3.7 /home/amng853/ruby-website/google_analytics_info.py
  schedule: every 1 hours

but it keeps returning:

ERROR: (gcloud.app.deploy) Server responded with code [500]:
  Internal Server Error.
  <h3>Server Error</h3><p>A server error has occurred.</p>

when I deploy the cron.yaml and I don't know what to do.

I also tried to user python3 instead of python3.7 path but still displays the error. (Yes I have python3.7 and python3 installed)

Anton Pomieshchenko

In general you can not do this. You need to create endpoint, and then run that url.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Google Cloud App Engine Cron can't execute python script

How to make a cron job run during business hours on Google App Engine cron.yaml?

How do I run a cron job 45 minutes past the hour on google app engine?

How can I run PHP Service on Google Cloud App Engine

How can I make url rewrite on google cloud app engine?

How do I run custom python script in Google App engine

Google cloud app.yaml cron.yaml for python script not working but no log

How to run a bash script every hour and how to kill it on cloud desktop?

Run python script every hour

Run python script on Google Cloud Compute Engine

Can I run PHP files on Google App Engine for Python?

How do I run a local server for an App Engine / Node.js app with an app.yaml file?

Run a python script on schedule on Google App Engine

Can google app engine cron jobs trigger a background cloud function?

How to run python script from Linux terminal every hour?

yaml configuration for add one more script file to google app engine

How I can run mysql query automatically in every 1 hour?

Can I run a CRON job for an hour

How can I make the server check a site every time? How can I run a script on a server?

Scheduling Python Script to run every hour accurately

I can't upload a file to google cloud using python script?

How do I write a file through my app in the Google App Engine to the Google Cloud Storage?

Make A Python Script Do Something Every Hour

How do I make cron work with a specific app engine module?

How many WordPress instances can i run on Google Compute engine in a single google cloud platform project.

Google App Engine Python: Error in yaml config file when deploying

How can I make GNU screen run a command or script every time I create a new window?

How to refer to a relative path of a YAML file in a Google App Engine project?

How to configure Google App Engine yaml file to handle 404 Error