Questions tagged [python-huey]

Distributed task queue framework for python.

Python Huey is a distributed queue management system. It relies on a broker (currently Redis is supported) for delivering jobs specification to workers machines. A decorator-based syntax allows close-to-seamless integration with existing software.

Huey represents a simple but viable alternative to Python Celery.

54 questions
0
votes
1 answer

What is the best way to implement a context_task for periodic_tasks in Huey?

I'm looking for the best way to implement Peewee's context manager with periodic tasks in Huey. Normal tasks have that nice little Huey.context_task() decorator, but there doesn't seem to be anything similar for periodic tasks. Am I correct to…
Pippit
  • 3
  • 1
0
votes
1 answer

Does the flask g object have a timeout?

I'm using Flask in combination with Huey to process long-running tasks out of context. So in essence, a flask context is started by one of the Huey consumers (a worker process) and it does a lot of work that takes some time. In this process I use…
Erik Oosterwaal
  • 4,272
  • 3
  • 44
  • 64
0
votes
1 answer

sqlite3.OperationalError) no such table - flask with huey task queue

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. My app/init contains: from flask_sqlalchemy import SQLAlchemy mail = Mail() db = SQLAlchemy() def…
user1592380
  • 34,265
  • 92
  • 284
  • 515
0
votes
1 answer

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

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) …
user1592380
  • 34,265
  • 92
  • 284
  • 515
0
votes
2 answers

OSError: [Errno 98] Address already in use - Heroku

I'm trying to deploy a project https://github.com/kc1/flask-huey-example to heroku to allow usage of a task queue and flask. The project layout is as above. You can also take a look at the github repo which I have updated. The project is running…
user1592380
  • 34,265
  • 92
  • 284
  • 515
0
votes
1 answer

Setting Huey to use Redis with Flask

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) following the readme I…
user1592380
  • 34,265
  • 92
  • 284
  • 515
0
votes
1 answer

Listening to python huey events - run listener once?

I try to incorporate python huey queue into my flask application, and I got it all working and all. I use it to run task in my workflow, and while the task is running I hide it from the user (add task_id from huey.task to my taskstatus in database)…
collerek
  • 261
  • 2
  • 6
-1
votes
2 answers

Django Huey Crontab every day at 10am

I'm using Django 4.0.4 and huey 2.4.3. What I would like to atchieve it's to run a task everyday at 10am, using a periodic task. My task folder path => project/apps/utils/tasks +-- project/ | +-- apps/ | +-- utils/ | +-- tasks/ | …
MOURET Jonas
  • 13
  • 1
  • 5
-1
votes
2 answers

Running python manage.py run_huey in production

I recently deployed a django web app using Ubuntu 20.04, gunicorn and nginx, Huey was implemented which worked perfectly locally. At production, I need to run python manage.py run_huey using systemd. I've tried the suggestion here Can't enable huey…
1 2 3
4