We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1debecb commit 27dcaa5Copy full SHA for 27dcaa5
django_tasks/backends/database/backend.py
@@ -1,4 +1,4 @@
1
-from dataclasses import asdict, dataclass
+from dataclasses import dataclass
2
from typing import TYPE_CHECKING, Any, List, TypeVar
3
4
from django.apps import apps
@@ -23,16 +23,6 @@
23
class TaskResult(BaseTaskResult[T]):
24
db_result: "DBTaskResult"
25
26
- def refresh(self) -> None:
27
- self.db_result.refresh_from_db()
28
- for attr, value in asdict(self.db_result.task_result).items():
29
- setattr(self, attr, value)
30
-
31
- async def arefresh(self) -> None:
32
- await self.db_result.arefresh_from_db()
33
34
35
36
37
class DatabaseBackend(BaseTaskBackend):
38
supports_async_task = True
0 commit comments