wooey / Wooey

A Django app that creates automatic web UIs for Python scripts.
http://wooey.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.13k stars 184 forks source link

Any script get stucked waiting on Windows 10 #320

Closed csimbi88 closed 4 years ago

csimbi88 commented 4 years ago

Hi!

I'm absolutely new to Wooey and django. I have successfully installed Wooey, and managed to register scripts as well, but none of them (including the example script is running). I think, the issue is pretty much similar to #218, but still not the same I guess.

I'm using Python 3.7.4 and Django 3.0.5.

Whenever tring to execute a script, I see the prompt running forever, and coming up with the same messages in every second.

Thanks a lot for your help and let me know if any further information is needed.

Chris7 commented 4 years ago

Are you running a celery instance to execute the jobs?

csimbi88 commented 4 years ago

I'm using the defaul Wooey setup, so I guess celery is being run there. Is there anything, that needs manual installation maybe?

Chris7 commented 4 years ago

Celery has to be run separately, you can read more about this here: https://wooey.readthedocs.io/en/latest/running_wooey.html

One thing to note is that a recent user mentioned they had to use gevent on windows instead of eventlet, so this command would change:

celery -A your_project_name worker --pool=eventlet -l info to celery -A your_project_name worker --pool=gevent -l info

Chris7 commented 4 years ago

You can also set WOOEY_CELERY=False to run the scripts on the main server, which will cause the server to become unresponsive while the jobs are executing however

csimbi88 commented 4 years ago

Thanks so much. Finally the WOOEY_CELERY=False works fine, the other option ufnortunately doesn't, but for my current purpose it is perfectly fine.