diff options
| author | winter | 2024-12-14 16:26:30 +0000 |
|---|---|---|
| committer | winter | 2024-12-14 16:26:30 +0000 |
| commit | 4dc9d1a481417bb78606996fa75c791bb646f44f (patch) | |
| tree | 1e5c1beff234999a0a0eb9819515644ec73d965d /bin | |
| parent | 86cf52e8d2701e13bd9fd4c847b35eba7506c473 (diff) | |
job queue and workers and loggers!
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 |
