File: rqresume.py

package info (click to toggle)
django-rq 3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: python: 3,184; makefile: 7
file content (12 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from django.core.management.base import BaseCommand
from rq.suspension import resume

from ...queues import get_connection


class Command(BaseCommand):
    help = "Resume all queues."

    def handle(self, *args, **options):
        connection = get_connection()
        resume(connection)