|
|
|
@ -5,17 +5,17 @@ from __future__ import (absolute_import, division, print_function,
|
|
|
|
|
import os
|
|
|
|
|
from time import sleep
|
|
|
|
|
|
|
|
|
|
from rq import get_failed_queue, Queue, Worker, SimpleWorker
|
|
|
|
|
from rq.compat import as_text
|
|
|
|
|
from rq.job import Job, JobStatus
|
|
|
|
|
from rq.registry import StartedJobRegistry
|
|
|
|
|
from rq.suspension import suspend, resume
|
|
|
|
|
|
|
|
|
|
from tests import RQTestCase, slow
|
|
|
|
|
from tests.fixtures import (create_file, create_file_after_timeout,
|
|
|
|
|
div_by_zero, say_hello, say_pid, do_nothing)
|
|
|
|
|
div_by_zero, do_nothing, say_hello, say_pid)
|
|
|
|
|
from tests.helpers import strip_microseconds
|
|
|
|
|
|
|
|
|
|
from rq import get_failed_queue, Queue, SimpleWorker, Worker
|
|
|
|
|
from rq.compat import as_text
|
|
|
|
|
from rq.job import Job, JobStatus
|
|
|
|
|
from rq.registry import StartedJobRegistry
|
|
|
|
|
from rq.suspension import resume, suspend
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CustomJob(Job):
|
|
|
|
|
pass
|
|
|
|
|