Update progress time info (#4193)

### What problem does this PR solve?

Ignore the millisecond and microsecond value.

### Type of change

- [x] Refactoring

Signed-off-by: jinhai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2024-12-23 21:04:44 +08:00
committed by GitHub
parent a9fd6066d2
commit d030b4a680
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class TaskService(CommonService):
if not docs:
return None
msg = f"\n{datetime.now().strftime('%H:%M:%S.%f')} Task has been received."
msg = f"\n{datetime.now().strftime('%H:%M:%S')} Task has been received."
prog = random.random() / 10.0
if docs[0]["retry_count"] >= 3:
msg = "\nERROR: Task is abandoned after 3 times attempts."