peppeocchi / php-cron-scheduler

PHP cron job scheduler
MIT License
808 stars 143 forks source link

How to start a worker timer function upon startup? #145

Open eric-gilbertson opened 8 months ago

eric-gilbertson commented 8 months ago

Hi There,

I would like to use a worker function to trigger the scheduler invocations, as outlined in the Worker section of your documentation. Being new to PHP though, I'm not sure how this worker is initially called given the lack of process life cycle hooks in PHP. Could you provide an example of how this code would be wired & started in a Docker based app.

Thank you for providing the great library.

-Eric G.