Draft: lfns and autoconf-options as celery task?
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/
--> returns201 Created
+ celery task ID to poll in the next endpoint -
/lfns/long/{id}
--> returns result of{id}
-
/autoconf-options/long/
--> returns201 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