From bbdec7c61e3d940eb65bbeb577cf97f13c5ebe57 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Tue, 19 Mar 2019 13:06:35 +0800 Subject: [PATCH] updated celery logging info --- crawlab/tasks/spider.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crawlab/tasks/spider.py b/crawlab/tasks/spider.py index fa9d7576..cc967263 100644 --- a/crawlab/tasks/spider.py +++ b/crawlab/tasks/spider.py @@ -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 })