mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
updated celery logging info
This commit is contained in:
@@ -72,6 +72,10 @@ def execute_spider(self, id: str):
|
||||
|
||||
# save task when the task is finished
|
||||
db_manager.update_one('tasks', id=task_id, values={
|
||||
'start_ts': datetime.now(),
|
||||
'node_id': hostname,
|
||||
'hostname': hostname,
|
||||
'log_file_path': log_file_path,
|
||||
'finish_ts': datetime.now(),
|
||||
'status': status
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user