Skip to content

Commit

Permalink
fix rq worker process start
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 2, 2022
1 parent 49133ff commit 51de4e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpcontribs-api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
logger = logging.getLogger(__name__)
client = boto3.client('ecs')


def start(program):
args = ["start", program]
options = ClientOptions()
options.realize(args)
c = Controller(options)
c.onecmd(" ".join(options.args))


start("apis:*")

metadata_uri = os.environ.get("METADATA_URI", "")
Expand Down Expand Up @@ -44,4 +46,4 @@ def start(program):

if start_rq:
# start("rq:*")
start("rq:worker")
start("rq:*-worker")

0 comments on commit 51de4e8

Please sign in to comment.