python-huey

Can't enable huey service on deploy server

元气小坏坏 提交于 2021-02-07 22:31:45
问题 I'm working in a Django project deployment. I have integrated huey to run asynchronous tasks. Locally all runs perfectly but now, at the deployment step, I'm getting troubles about huey service activation. I really can't find any information about that because I think that solution should be so simple, bat I really can't find it :(. I'm using nginx and gunicorn services. App runs perfectly on deploy server but huey tasks are not running. I have created a huey.service file located in /etc

Can't enable huey service on deploy server

吃可爱长大的小学妹 提交于 2021-02-07 22:26:45
问题 I'm working in a Django project deployment. I have integrated huey to run asynchronous tasks. Locally all runs perfectly but now, at the deployment step, I'm getting troubles about huey service activation. I really can't find any information about that because I think that solution should be so simple, bat I really can't find it :(. I'm using nginx and gunicorn services. App runs perfectly on deploy server but huey tasks are not running. I have created a huey.service file located in /etc

Huey Task Queue handle error on last retry only & retrieve exception traceback

佐手、 提交于 2021-01-29 22:40:58
问题 Currently have this snippet set up in my tasks.py so that an email is sent to the Django project's admins by huey whenever a task fails: from django.core.mail import mail_admins from huey import signals from huey.contrib import djhuey as huey @huey.signal(signals.SIGNAL_ERROR) def task_error(signal, task, exc): subject = f'Task [{task.name}] failed message = f"""Task ID: {task.id}' Args: {task.args} Kwargs: {task.kwargs} Exception: {exc}""" mail_admins(subject, message) This results in the

Huey Task Queue handle error on last retry only & retrieve exception traceback

半腔热情 提交于 2021-01-29 22:37:11
问题 Currently have this snippet set up in my tasks.py so that an email is sent to the Django project's admins by huey whenever a task fails: from django.core.mail import mail_admins from huey import signals from huey.contrib import djhuey as huey @huey.signal(signals.SIGNAL_ERROR) def task_error(signal, task, exc): subject = f'Task [{task.name}] failed message = f"""Task ID: {task.id}' Args: {task.args} Kwargs: {task.kwargs} Exception: {exc}""" mail_admins(subject, message) This results in the

Huey Task Queue handle error on last retry only & retrieve exception traceback

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 21:52:39
问题 Currently have this snippet set up in my tasks.py so that an email is sent to the Django project's admins by huey whenever a task fails: from django.core.mail import mail_admins from huey import signals from huey.contrib import djhuey as huey @huey.signal(signals.SIGNAL_ERROR) def task_error(signal, task, exc): subject = f'Task [{task.name}] failed message = f"""Task ID: {task.id}' Args: {task.args} Kwargs: {task.kwargs} Exception: {exc}""" mail_admins(subject, message) This results in the

TypeError: decorator() missing 1 required positional argument: 'func'

孤人 提交于 2019-12-13 03:54:26
问题 I'm trying to use python huey (https://github.com/coleifer/huey/blob/master/huey/api.py) to allow usage of a task queue with flask. Starting with a function: def some_long_calculation(): driver = create_chromedriver(True) print(driver.capabilities['version']) driver.get("https://www.yahoo.com/news/") I import it into the tasks.py file and turn into into a task function with: from . import my_huey some_long_calculation_task = my_huey.task(some_long_calculation) I then import some_long

OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

[亡魂溺海] 提交于 2019-12-13 03:48:42
问题 I'm experimenting with the use of Huey as a cross platform task queue . I've found https://github.com/pjcunningham/flask-huey-example , which I've cloned and set up a virtualenv for using conda (I'm working on windows). I've followed the updated readme and have managed to get all three windows running without error.However when I open http://localhost:6060/ [![enter image description here][2]][2] I click on the send button and this breaks the Huey_consumer process : $ python ...envs/hueytest1

What is the best option for a (Python 3) task queue on Windows now that Celery 4 has dropped Windows support?

久未见 提交于 2019-11-29 02:16:43
问题 We run a Flask site under IIS on Windows, and for out-of-process tasks we use Celery. Celery has given us some problems under Windows, but for now we are satisfied running version 3.1.12, using RabbitMQ/AMQP as a back-end, which works under Windows. The new version of Celery (4) has dropped support for Windows, so I'm looking for a viable alternative. RQ seems a very nice task queue, but it also does not support Windows (bottom of the page) I have seen some more, seemingly less popular task