Skip to content

Task components release#2

Merged
SunnyHaze merged 4 commits intoOpenDCAI:backendfrom
wongzhenhao:backend
Nov 14, 2025
Merged

Task components release#2
SunnyHaze merged 4 commits intoOpenDCAI:backendfrom
wongzhenhao:backend

Conversation

@wongzhenhao
Copy link
Copy Markdown
Member

✅ 任务状态管理 (5种状态)

  • pending → running → success/failed/cancelled

✅ 任务信息追踪

  • 数据集ID(输入)
  • 算子/Pipeline名称
  • 输出结果ID
  • 运行状态
  • 错误信息
  • 时间戳(创建/开始/完成)

✅ REST API (10个接口)

  • 基础CRUD操作 (5个)
  • 生命周期管理 (4个)
  • 统计分析 (1个)

✅ 数据持久化

  • YAML文件存储
  • 自动时间戳记录

Copy link
Copy Markdown
Contributor

@SunnyHaze SunnyHaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry,麻烦按照群里的文档再迭代一波,这个更好的做了try except和返回值的包装。感谢!

@wongzhenhao
Copy link
Copy Markdown
Member Author

New requests were done. Please review, TQ

Copy link
Copy Markdown
Contributor

@SunnyHaze SunnyHaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

核心业务逻辑目测很好了!不过就是测试文件可能统一做成pytest做自动测试?这样会方便后续使用github自测。感谢!

Comment thread backend/test_task_registry.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个Tester文件能不能写成pytest的格式作为单元测试,放在tests文件下面,通过pytest指令运行过测试即可。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Copy link
Copy Markdown
Contributor

@SunnyHaze SunnyHaze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Sincerly thanks!

@SunnyHaze SunnyHaze merged commit 31b992e into OpenDCAI:backend Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants