tasktiger | Python task queue using Redis
kandi X-RAY | tasktiger Summary
kandi X-RAY | tasktiger Summary
Python task queue using Redis
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Decorate a function
- Delay the task
- Delay execution of a function
- Return the fully qualified name of a function
- Run worker
- Install signal handlers
- Poll the queue for jobs
- Start the queue
- Runs the task
- Calculate the stats
- Run redis scan
- Get the size of a key
- Get queue stats
- Determine if a queue matches a given queue name
- Moves the task to the queue
- Run a worker thread
tasktiger Key Features
tasktiger Examples and Code Snippets
def create_app(settings_override=None):
app = App('app')
if settings_override:
app.config.from_object(settings_override)
else:
app.config.from_object(os.environ['APP_SETTINGS'])
from .ext import configure
Community Discussions
Trending Discussions on tasktiger
QUESTION
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 queues like:
But it's unclear if these support Windows and Flask. I'm wondering if anyone has experience running a Python task queue under Windows which works. Maybe one of the ones I mentioned, or an alternative.
It's not an option for us to run a Linux machine, because we have no experience administering Linux, and we have a lot of legacy stuff running that requires Windows.
...ANSWER
Answered 2017-Mar-29 at 10:58I run Flask with Huey on Windows without any issues, admittedly only for development and testing. For production I use Flask/Huey on Linux servers. Both with the Redis back-end, Flask 0.12 and Huey 1.2.0 .
I use the factory pattern to create a specialised "cut down" version of a Flask app for specific use by Huey tasks. This version doesn't load blueprints or configure Flask-Admin as these aren't required in the Huey tasks.
Example code of __init__.py
in app folder. App
is a class extending from Flask
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install tasktiger
You can use tasktiger like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page