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
7 changes: 3 additions & 4 deletions rock/admin/scheduler/task_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ async def single_run(self, runtime: RemoteSandboxRuntime, ip: str) -> dict:

async def get_task_status(self, runtime: RemoteSandboxRuntime) -> TaskStatus | None:
"""Get task status from worker."""
try:
await runtime.execute(Command(command=f"ls {self.status_file_path}", shell=True))
except Exception:
logger.info(f"{self.status_file_path} not found")
check_file_resp = await runtime.execute(Command(command=f"ls {self.status_file_path}", shell=True))
if check_file_resp.exit_code == 2:
logger.info(f"task status file not exist: {self.status_file_path}")
return None

response = await runtime.read_file(ReadFileRequest(path=self.status_file_path))
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading