Closed spwoodcock closed 2 months ago
Note after this, we would probably want to decrease the connections param in docker-compose db setup, plus the SQLAlchemy create_engine, pool_size and max_overflow params.
Ideally we need an endpoint to re-run the task creation if any tasks failed, probably by checking if there is an odk_token
present for the task. If yes, attempt the generate_task_files function again.
Further updates!
So the detail about requiring many connections during project creation is no longer true. Adding entities has greatly improved efficiency.
The only thing we really need this for is basemap generation. For that we have two alternatives:
The second approach lends itself to adding a notifications
table and perhaps having real time notifications when project creation is done & when basemaps are done.
I think this should be closed and replaced with either option above.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
pessimistic execution
model, where tasks are only removed from the queue once they have completed. As a consequence all tasks must be idempotent (can be run multiple times without issue).Why FastStream was chosen over the above