mirror of https://github.com/CIRCL/url-abuse
20 lines
356 B
Python
Executable File
20 lines
356 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
|
|
import redis
|
|
from rq import Worker, Queue, Connection
|
|
|
|
listen = ['default']
|
|
|
|
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6334')
|
|
|
|
conn = redis.from_url(redis_url)
|
|
|
|
if __name__ == '__main__':
|
|
with Connection(conn):
|
|
worker = Worker(map(Queue, listen))
|
|
worker.work()
|
|
|