-
Notifications
You must be signed in to change notification settings - Fork 44
feat/clean #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat/clean #329
Changes from 16 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
08952f8
增加删除算子校验
hhhhsc701 e0da089
算子市场python实现
hhhhsc701 09b8564
算子市场python实现
hhhhsc701 492cd00
算子市场python实现
hhhhsc701 0dd2c2c
数据处理python实现
hhhhsc701 5ed247f
Merge branch 'main' into feat/clean
hhhhsc701 ef60997
数据处理python实现
hhhhsc701 d080d1a
数据处理错误处理优化
hhhhsc701 5b10d43
增加删除算子校验
hhhhsc701 b597f49
算子市场python实现
hhhhsc701 fd1e450
算子市场python实现
hhhhsc701 ce925a4
算子市场python实现
hhhhsc701 ec574ac
数据处理python实现
hhhhsc701 72d6929
数据处理python实现
hhhhsc701 90e40c6
数据处理错误处理优化
hhhhsc701 7dda870
Merge remote-tracking branch 'origin/feat/clean' into feat/clean
hhhhsc701 80df413
适配datajuicer
hhhhsc701 ae8a877
适配datajuicer
hhhhsc701 56de047
适配datajuicer
hhhhsc701 e9955fb
适配datajuicer
hhhhsc701 814e693
适配datajuicer
hhhhsc701 2cc6591
删除迁移代码
hhhhsc701 65c86f4
Merge branch 'main' into feat/clean
hhhhsc701 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,25 @@ | ||
| { | ||
| "0": "成功", | ||
| "cleaning.0001": "清洗任务不存在", | ||
| "cleaning.0002": "清洗任务名称重复", | ||
| "cleaning.0003": "清洗模板不存在", | ||
| "cleaning.0004": "清洗模板名称重复", | ||
| "cleaning.0005": "算子输入输出类型不匹配", | ||
| "cleaning.0006": "执行器类型无效", | ||
| "cleaning.0007": "数据集不存在", | ||
| "cleaning.0008": "文件系统错误", | ||
| "cleaning.0009": "设置解析错误", | ||
| "cleaning.0010": "任务ID不能为空", | ||
| "operator.0001": "算子不存在", | ||
| "operator.0002": "算子正在使用中", | ||
| "operator.0003": "无法删除预置算子", | ||
| "operator.0004": "不支持的文件类型", | ||
| "operator.0005": "解析算子包失败", | ||
| "operator.0006": "缺少必要的字段", | ||
| "400": "请求参数错误", | ||
| "401": "登录已过期,请重新登录", | ||
| "403": "没有权限访问该资源", | ||
| "404": "请求的资源不存在", | ||
| "500": "服务器内部错误,请稍后重试", | ||
| "502": "网关错误", | ||
| "op.0001": "不支持的文件类型", | ||
| "op.0002": "算子中缺少元数据文件", | ||
| "op.0003": "缺少必要的字段", | ||
| "op.0004": "settings字段解析失败", | ||
| "op.0005": "算子ID已存在", | ||
| "op.0006": "算子名称已存在", | ||
| "op.0007": "算子已被编排在模板或未完成的任务中", | ||
| "op.0008": "预置算子无法删除", | ||
| "clean.0001": "清洗任务名称重复", | ||
| "clean.0002": "任务列表为空", | ||
| "clean.0003": "算子输入输出不匹配", | ||
| "clean.0004": "算子执行器不匹配" | ||
| "502": "网关错误" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| """ | ||
| Chunk Upload Database Model | ||
| 分片上传数据库模型 | ||
| """ | ||
| from sqlalchemy import Column, String, Integer, DateTime | ||
| from sqlalchemy.sql import func | ||
|
|
||
| from app.db.models.base_entity import Base | ||
|
|
||
|
|
||
| class ChunkUploadPreRequest(Base): | ||
| """分片上传预请求""" | ||
| __tablename__ = "t_chunk_upload_request" | ||
|
|
||
| id = Column(String(36), primary_key=True, comment="请求ID") | ||
| total_file_num = Column(Integer, nullable=False, comment="总文件数") | ||
| uploaded_file_num = Column(Integer, nullable=True, comment="已上传文件数") | ||
| upload_path = Column(String(512), nullable=False, comment="文件路径") | ||
| timeout = Column(DateTime, nullable=False, comment="上传请求超时时间") | ||
| service_id = Column(String(64), nullable=True, comment="上传请求所属服务ID") | ||
| check_info = Column(String(512), nullable=True, comment="业务信息") | ||
|
|
||
| def increment_uploaded_file_num(self): | ||
| """增加已上传文件数""" | ||
| if self.uploaded_file_num is None: | ||
| self.uploaded_file_num = 1 | ||
| else: | ||
| self.uploaded_file_num += 1 | ||
|
|
||
| def is_upload_complete(self) -> bool: | ||
| """检查是否已完成上传""" | ||
| return (self.uploaded_file_num is not None and | ||
| self.uploaded_file_num == self.total_file_num) | ||
|
|
||
| def is_request_timeout(self) -> bool: | ||
| """检查是否已超时""" | ||
| from datetime import datetime | ||
| return self.timeout is not None and datetime.utcnow() > self.timeout |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.