Below is the configuration for the function:
.region("australia-southeast1")
.runWith({ secrets: ["***"], timeoutSeconds: 540, memory: "1GB",
vpcConnector: "nrl-grassroots", maxInstances: 1 })
.pubsub.schedule("0 0-6 * * 2-5")
.timeZone("Australia/Sydney")
The function is set to run on a schedule between 00:00 and 06:00 on Tuesday through Friday (Australia/Sydney time). However, we’ve observed instances where the function is triggered more than once during its scheduled time window, which is not the expected behavior.
Steps Taken:
- Verified the configuration settings for the function.
- Checked Cloud Function logs to confirm multiple triggers.
Any assistance in determining the root cause of this issue and guidance on how to prevent the function from being triggered multiple times. Could you provide any insights into why this might be happening and any recommended solutions to resolve it?
With the config we were expecting there will be 6 runs over night.