DEV Community

loading...

Discussion on: Scaling down periodic tasks on Google Compute Engine.

Collapse
achrafboussaada profile image
Achraf Boussaada

In my case i need to deploy two cron jobs. But i couldn't figure out how to set the url in cron.yaml and the handlers in the other file correctly. Also i'm using a bucket to store the script that's going to be executed. Somehow the cronjobs could not differentiate between the two scripts and endup using only one for both. Any idea how to organize my bucket or how to set the handlers the right way ?

Keep up the good work.

Collapse
drbearhands profile image
DrBearhands Author

Just have 2 VMs and 2 different appengine endpoints. I can't really help with the buckets as I haven't used that API yet. I'm curious though what your use-case for buckets is, I never found any use for them (explicitely) myself.

Collapse
achrafboussaada profile image
Achraf Boussaada

Hi again,

my use case doesn't involve VMs. I need to send push notifications and update my database periodically.That's why i need two separate cron jobs and i'm using a bucket to store the scripts responsible for doing the work. Is there an other approach to do this ? or does my app.yaml file need to contain a script for both jobs ? i read the documentations multiple times and couldn't fully understand how this work.

Thread Thread
drbearhands profile image
DrBearhands Author

This was about using VMs to scale down. I don't know every single feature of GCP from memory. Maybe you'll have more luck on a GCP slack channel?

Forem Open with the Forem app