xfra35 / f3-cron

Job scheduling for the PHP Fat-Free Framework
GNU General Public License v3.0
72 stars 22 forks source link

make async configurable #10

Closed ikkez closed 3 years ago

ikkez commented 4 years ago

can you make async and option like the rest? I have a client server that has a poorly setup php cli and i need to fallback to some traditional job handling via web call that doesnt use the binary under the hood.

xfra35 commented 3 years ago

Hey @ikkez. Sorry for the delay. Just force the binary to NULL and you're all set:

$cron=Cron::instance();
$cron->binary(NULL,TRUE); // no binary = no asynchronicity