Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions deployment/docker/datamate/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:

datamate-backend:
container_name: datamate-backend
image: ${REGISTRY:-}datamate-backend
image: ${REGISTRY:-}datamate-backend:${VERSION:-latest}
restart: on-failure
privileged: true
environment:
Expand All @@ -23,7 +23,7 @@ services:

datamate-backend-python:
container_name: datamate-backend-python
image: ${REGISTRY:-}datamate-backend-python
image: ${REGISTRY:-}datamate-backend-python:${VERSION:-latest}
restart: on-failure
privileged: true
environment:
Expand All @@ -41,7 +41,7 @@ services:

datamate-gateway:
container_name: datamate-gateway
image: ${REGISTRY:-}datamate-gateway
image: ${REGISTRY:-}datamate-gateway:${VERSION:-latest}
restart: on-failure
privileged: true
ports:
Expand All @@ -53,7 +53,7 @@ services:

datamate-frontend:
container_name: datamate-frontend
image: ${REGISTRY:-}datamate-frontend
image: ${REGISTRY:-}datamate-frontend:${VERSION:-latest}
restart: on-failure
ports:
- "30000:3000"
Expand All @@ -66,7 +66,7 @@ services:

datamate-database:
container_name: datamate-database
image: ${REGISTRY:-}datamate-database
image: ${REGISTRY:-}datamate-database:${VERSION:-latest}
restart: on-failure
environment:
- POSTGRES_USER=postgres
Expand All @@ -80,7 +80,7 @@ services:

datamate-runtime:
container_name: datamate-runtime
image: ${REGISTRY:-}datamate-runtime
image: ${REGISTRY:-}datamate-runtime:${VERSION:-latest}
restart: on-failure
environment:
RAY_DEDUP_LOGS: "0"
Expand Down
4 changes: 2 additions & 2 deletions runtime/ops/examples/test_operator/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ metrics:
- name: '吞吐量'
metric: '20 images/sec'
runtime:
memory: 10MB
cpu: 1000m
memory: 10485760
cpu: 0.05
gpu: 0.1
npu: 0.1
settings:
Expand Down
Binary file modified runtime/ops/examples/test_operator/test_operator.tar
Binary file not shown.
10 changes: 9 additions & 1 deletion runtime/python-executor/datamate/core/base_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,15 @@ def __call__(self, sample: Dict[str, Any], **kwargs):
sample["execute_status"] = execute_status
# 加载文件成功执行信息到数据库
if self.is_last_op:
self.save_file_and_db(sample)
# 文件无内容会被过滤
if sample[self.text_key] == "" and sample[self.data_key] == b"":
task_info = TaskInfoPersistence()
sample[self.filesize_key] = "0"
sample[self.filetype_key] = ""
task_info.update_task_result(sample)
return sample
else:
self.save_file_and_db(sample)
return sample

def execute(self, sample: Dict[str, Any]) -> Dict[str, Any]:
Expand Down
Loading