Category : google-cloud-scheduler

raise exceptions.from_grpc_error(exc) from exc google.api_core.exceptions.PermissionDenied: 403 The principal (user or service account) lacks IAM permission "cloudscheduler.jobs.create" for the resource "projects/P_ID/locations/asia-south1" (or the resource may not exist). i don’t know why this error occurs and permission granted on my service_key.json for cloud scheduler how do i solve this issue Source: Python-3x..

Read more

I have created a flask api in python and deployed as a container image in gcp cloud run and running through the cloud scheduler, in my code i am reading large data (1.5 crore rows and 20 columns) from big query, i have set my system config to 8gm ram 4 cpu. problem1- It is ..

Read more

I have following A repository which contains a code(python) to be executed A VM at Google Cloud (debian/ubuntu) A scheduler + cloud function to start VM every hour What I require I want to run the code in repository every hour and after its execution the machine shuts down. My code runs 15-25 mins in ..

Read more

With the google cloud scheduler API we can set the frequency but can the frequency be set based on what the user time preference is for the push notification? The user’s time preference will be stored in firebase. We are writing our functions in python and were wondering if there were certain libraries we could ..

Read more

I am trying to update google scheduler job.But,it does not work well.How do I this? Now I understand what problem is.The problem is that the option class is wrong. How should I write this place? Target(topic_name="projects/aaa/topics/bbb",data="test".encode("utf-8")) The error message. TypeError: Parameter to MergeFrom() must be instance of same class: expected google.cloud.scheduler.v1.PubsubTarget got PubsubTarget. my code ..

Read more

Cloud SQL instance is not being stopped using Cloud Schedule after these steps: Create a pub/sub topic that is supposed to trigger the cloud function. Deploy a cloud function using the topic already created in step 1, with the below python (3.8) code file and requirements. (Entry point: start_stop) Create a cloud scheduler job to ..

Read more