Frappe cron job at multiple replicaset backend with Kubernetes

Hello,
I’m new at Frappe. So I don’t know much about Frappe Framework…

I referred to the repository at the address above.
I succeeded in building a custom container image and running it in single-compose settings. And Reverse Proxy by traefik.

As a next step, I want to distribute to Kubernetes.

Then I had a question.
In case of replica set of the backend is 1, the cronjob written on hooks.py will run normally.

If the replicaset of backend is 2, does the cronjob written on hooks.py run twice?

If cronjob runs twice how do I avoid it?

Thanks.

Use the official repo, that’s my fork which I use to send PR to official repo GitHub - frappe/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext

Scheduled events from hooks are managed by scheduler pod, do not scale it to more than 1 replica. Others you can scale. FAQ | ERPNext Helm Chart