jeudi 4 février 2016

laravel schedule command at random time

I've got a strange issue. I use a custom command to share, via FB api, some url.

Now this command is scheduled to a fixed cron configuration but I would like this to be randomic, maybe between time ranges.

I tried using a random sleep function inside command, but I got strange behavior.

Did anyone already have to face this problem?




Aucun commentaire:

Enregistrer un commentaire