Page MenuHomePhabricator

[sct.backend] Create worker and connect to redis
Closed, ResolvedPublic

Description

This might include getting a docker-compose or similar to be able to run locally (see https://github.com/blancadesal/fastapi-toolhunt for inspiration).

New api endpoints:

  • GET /task <no params> -> triggers a new task, waits for it and return the result (easier than doing polling from the frontend)

It should include:

  • One simple celery task to run (it can just be a sleep)
  • Worker boilerplate to run the worker (adding a new entry in the Procfile worker, redis connection setting from envvars, ...)
  • It should run correctly in toolforge using the shared redis instance as celery backend

Event Timeline

dcaro triaged this task as High priority.Jul 24 2024, 3:03 PM
dcaro changed the task status from Open to In Progress.Aug 13 2024, 10:08 AM
dcaro moved this task from Next Up to In Progress on the Toolforge (Toolforge iteration 14) board.
dcaro moved this task from In Review to Done on the Toolforge (Toolforge iteration 14) board.