diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/worker | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/worker b/bin/worker new file mode 100755 index 0000000..b6c8590 --- /dev/null +++ b/bin/worker @@ -0,0 +1,13 @@ +#!/usr/bin/env php +<?php + +require __DIR__ . '/../vendor/autoload.php'; +foreach (glob(__DIR__ . '/../misc/*.php') as $filename) { + require $filename; +} + +$queue = Digitigrade\JobQueue::getInstance(); +$queue->subscribe(); +while (true) { + $queue->runNext(); +}
\ No newline at end of file |
