Skip to content

Commit 6284fd1

Browse files
committed
Remove empty custom TaskResult for RQ backend
1 parent ad5cea4 commit 6284fd1

File tree

1 file changed

+1
-7
lines changed
  • django_tasks/backends

1 file changed

+1
-7
lines changed

django_tasks/backends/rq.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from collections.abc import Iterable
2-
from dataclasses import dataclass
32
from types import TracebackType
43
from typing import Any, Optional, TypeVar
54

@@ -26,8 +25,8 @@
2625
Task,
2726
TaskContext,
2827
TaskError,
28+
TaskResult,
2929
)
30-
from django_tasks.task import TaskResult as BaseTaskResult
3130
from django_tasks.utils import get_module_path, get_random_id
3231

3332
T = TypeVar("T")
@@ -46,11 +45,6 @@
4645
}
4746

4847

49-
@dataclass(frozen=True)
50-
class TaskResult(BaseTaskResult[T]):
51-
pass
52-
53-
5448
class Job(BaseJob):
5549
def perform(self) -> Any:
5650
assert self.worker_name is not None

0 commit comments

Comments
 (0)