Run task scheduler of erpnext running inside the docker container

My ERPNext custom app is running inside docker container.

I have checked

  1. RQ job Scheduler: Active
  2. It works with this command inside docker container
    bench --site {site} execute smarthr.api.employee_loan_api.automate_additional_salary

but when I set as set as scheduled it does not run, I think might be because of cron inside docker container, anyone help to give me some solution.

Thanks

If scheduler service is running it should schedule.

Cron is only for taking backup, nothing to do with scheduler and its cron.

yes, do you have any trick to check this?

Thanks

Check scheduled background jobs

Try

  • restarting the scheduler
  • clearing cache
  • bench migrate

If you find solution post here.