Cron job not working on weekend

Hi,

I have executed a cronjob which is supposed to work everyday at 8 am.
Issue - Cronjob gets executed only on weekdays.

Screenshot 2024-04-28 at 8.30.31 AM.png

Screenshot 2024-04-28 at 8.30.51 AM.png

4 2 61
2 REPLIES 2

Hello @monika-balram  ,Welcome on Google Cloud Community.

Frequency should looks as follow:

DamianS_0-1714371204714.pngDamianS_1-1714371222539.png

I believe that you've used : https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules?hl=en&_gl=1*12ux2jl*_ga*OTQxM...

and https://crontab.guru/#0_8_*_*_* 
as references to create frequency . 

BTW, it looks like your cron is works as expected ( it's triggered as scheduled ) however you are getting error during weekdays. Are you able to check what is the content of error? Because it looks like your target is not responding during weekend days (502 bad gateway) . 

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

Hi DamainS,

Thank you for your reply.

Frequency used is 0 8 * * *
Also, there are no latest logs for this issue.
Error log details
{
"textPayload": " % Total % Received % Xferd Average Speed Time Time Time Current",
"insertId": "svnp78phw3q4y23a",
"resource": {
"type": "k8s_container",
"labels": {
"pod_name": "approval-remainder-28568885-65mgh",
"namespace_name": "default"
}
},
"timestamp": "2024-04-26T12:05:00.961123364Z",
"severity": "ERROR",
"logName": "projects/vektor-dev-351106/logs/stderr",
"receiveTimestamp": "2024-04-26T12:05:05.987130023Z"
}
PFA - cronjob yml file screenshot

Thanks,
Monika
Screenshot 2024-04-29 at 10.28.57 AM.png

Top Labels in this Space