Skip to content

Draft: lfns and autoconf-options as celery task?

Ryunosuke O'Neil requested to merge lbaplocal-celery into main

At the moment /lfns and /autoconf-options fail a lot with Gateway Timeout due to a timeout enforced by either nginx, fastapi or uvicorn i.e. due to no response from fastapi while waiting for BKQuery etc

Adds

  • /lfns/long/ --> returns 201 Created + celery task ID to poll in the next endpoint
  • /lfns/long/{id} --> returns result of {id}
  • /autoconf-options/long/ --> returns 201 Created + celery task ID to poll in the next endpoint
  • /autoconf-options/long/{id} --> returns result of {id}

and two celery tasks which do the heavy lifting. AFAIK although RabbitMQ doesn't exactly store results for later fetching like e.g. Redis does it may store the result for a short while, making it fetchable

This requires of course lbaplocal clients to poll the /long/{id} endpoints until the result is ready

Edited by Ryunosuke O'Neil

Merge request reports