hotosm / fmtm

Field Mapping Tasking Manager - coordinated field mapping.
https://fmtm.hotosm.org/
GNU Affero General Public License v3.0
43 stars 44 forks source link

Implement FastStream task queue #1124

Closed spwoodcock closed 2 months ago

spwoodcock commented 8 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Why FastStream was chosen over the above

spwoodcock commented 7 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.

spwoodcock commented 7 months ago

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.

spwoodcock commented 3 months ago

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.