mercredi 4 janvier 2023

how to check a mutex exists for a scheduled job using laravel tinker?

I have a job scheduled to run every hour. 'withoutOverlapping' is set for this job and mutex expiry time is 24 hour.

But when I checked cron.log. I found that it is not running every hour. But it runs once in a day and at the end of job, there is a redis write error. I think this error is getting when clearing mutex (lock) of this job from redis after completion of job execution. Then after 24 hour, mutex expires automatically, then this job runs next hour.

To check mutex clears from redis or not, I need to see mutex of this job exists. So using tinker how can I achieve this ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire