mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-23 06:37:15 +00:00
fix: [crawler] same capture uuid if a domain is already crawled
This commit is contained in:
parent
4567c9d400
commit
47e1343187
1 changed files with 2 additions and 1 deletions
|
@ -1239,7 +1239,8 @@ class CrawlerCapture:
|
|||
|
||||
def create(self, task_uuid):
|
||||
if self.exists():
|
||||
raise Exception(f'Error: Capture {self.uuid} already exists')
|
||||
print(f'Capture {self.uuid} already exists') # TODO LOGS
|
||||
return None
|
||||
launch_time = int(time.time())
|
||||
r_crawler.hset(f'crawler:task:{task_uuid}', 'capture', self.uuid)
|
||||
r_crawler.hset('crawler:captures:tasks', self.uuid, task_uuid)
|
||||
|
|
Loading…
Reference in a new issue