`eventlet.spawn` doesn't work as expected

后端 未结 3 1957
误落风尘
误落风尘 2020-12-10 21:11

I\'m writing a web UI for data analysis tasks.

Here\'s the way it\'s supposed to work:

After a user specifies parameters like dataset and

3条回答
  •  盖世英雄少女心
    2020-12-10 21:50

    Eventlet may indeed be suitable for your purposes, but it doesn't just fit in with any old application; Eventlet requires that it be in control of all your application's I/O.

    You may be able to get away with either

    1. Starting Eventlet's main loop in another thread, or even

    2. Not using Eventlet and just spawning your task in another thread.

    Celery may be another option.

提交回复
热议问题