From db10c884e8be077e92ff30514d8c3e36f715d958 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Tue, 13 Dec 2022 13:27:23 +0530 Subject: [PATCH] build: seperate worker process --- apiserver/bin/worker | 6 ++++++ docker-compose.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 apiserver/bin/worker diff --git a/apiserver/bin/worker b/apiserver/bin/worker new file mode 100755 index 000000000..17b42fd9b --- /dev/null +++ b/apiserver/bin/worker @@ -0,0 +1,6 @@ +#!/bin/bash +set -e + +python manage.py migrate + +python manage.py rqworker \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 2963907be..d1cdd3314 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -71,7 +71,7 @@ services: image: plane-api depends_on: - redis - command: python manage.py rqworker + command: ./bin/worker links: - redis environment: