Skip to content

ReneVolution/memory_task_queue

Repository files navigation

Build Status Coverage Status Say Thanks

MemoryTaskQueue

A simple Task Queue with a retry mechanism.

Example

from memory_task_queue import MemoryTaskQueue

def my_callback(item):
    print(item)

def my_fallback(item):
    print('Callback failed to run')

mtq = MemoryTaskQueue(my_callback, on_max_retries=my_fallback, delay=0.3, max_retries=3)

mtq.put({'message': 'hello world'})

About

A simple Task Queue with a retry mechanism.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages