dwyeapi 0.8.1__tar.gz → 0.8.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dwyeapi might be problematic. Click here for more details.
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/PKG-INFO +1 -1
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/pyproject.toml +1 -1
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/model.py +7 -7
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi.egg-info/PKG-INFO +1 -1
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/README.md +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/setup.cfg +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/__init__.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/cache.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/config.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/database.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/dependencies.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/dt.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/exceptions.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/health.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/logger.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/masking.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/pagination.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/__init__.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/__init__.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/aliyun.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/base.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/config.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/factory.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/mock.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/protocol.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/email/resend.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/__init__.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/aliyun.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/base.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/config.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/factory.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/mock.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/providers/sms/protocol.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/response.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/security.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/__init__.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/context.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/pool.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/registry.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/router.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/schema.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/service.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi/tasks/worker.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi.egg-info/SOURCES.txt +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi.egg-info/dependency_links.txt +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi.egg-info/requires.txt +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/src/dwyeapi.egg-info/top_level.txt +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_cache.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_config.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_database.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_dependencies.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_exceptions.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_health.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_logger.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_masking.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_pagination.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_response.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_security.py +0 -0
- {dwyeapi-0.8.1 → dwyeapi-0.8.2}/tests/test_tasks.py +0 -0
|
@@ -36,10 +36,10 @@ class Task(Base, TimestampMixin):
|
|
|
36
36
|
|
|
37
37
|
__tablename__ = "tasks"
|
|
38
38
|
|
|
39
|
-
id: Mapped[str] = mapped_column(String(64), primary_key=True, default=_generate_task_id)
|
|
40
|
-
task_type: Mapped[str] = mapped_column(String(50), index=True)
|
|
41
|
-
status: Mapped[TaskStatus] = mapped_column(Enum(TaskStatus), default=TaskStatus.PENDING)
|
|
42
|
-
params: Mapped[dict] = mapped_column(JSON)
|
|
43
|
-
result: Mapped[dict | None] = mapped_column(JSON, nullable=True, default=None)
|
|
44
|
-
progress: Mapped[int] = mapped_column(Integer, default=0)
|
|
45
|
-
logs: Mapped[str] = mapped_column(Text, default="")
|
|
39
|
+
id: Mapped[str] = mapped_column(String(64), primary_key=True, default=_generate_task_id, comment="任务 ID") # 任务 ID
|
|
40
|
+
task_type: Mapped[str] = mapped_column(String(50), index=True, comment="任务类型") # 任务类型
|
|
41
|
+
status: Mapped[TaskStatus] = mapped_column(Enum(TaskStatus), default=TaskStatus.PENDING, comment="执行状态") # 执行状态
|
|
42
|
+
params: Mapped[dict] = mapped_column(JSON, comment="任务参数(JSON)") # 任务参数(JSON)
|
|
43
|
+
result: Mapped[dict | None] = mapped_column(JSON, nullable=True, default=None, comment="执行结果(JSON)") # 执行结果(JSON)
|
|
44
|
+
progress: Mapped[int] = mapped_column(Integer, default=0, comment="进度百分比 0-100") # 进度百分比 0-100
|
|
45
|
+
logs: Mapped[str] = mapped_column(Text, default="", comment="执行日志") # 执行日志
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|