mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-28 13:45:23 -04:00
fix(docker): keep worker task runner alive with retry loop
Original command exited after a single tasks:run pass, causing worker container to stop instead of running scheduled tasks continuously. - INSTALL.md: wrap `php spark tasks:run` in a shell loop that reruns it every 60s, so worker container matches `restart: unless-stopped` intent and keeps processing tasks Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
This commit is contained in:
1 parent
276cff39ce
commit
1e42c3b7ef
1 file changed
+1
-1
+1
-1
@@ -135,7 +135,7 @@ Add a second service to your `docker-compose.yml` pointing at the same database:
|
||||
```yaml
|
||||
worker:
|
||||
image: opensourcepos
|
||||
command: php spark tasks:run
|
||||
command: sh -c "while true; do php spark tasks:run; sleep 60; done"
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in new issue
Block a user