Skip to content

Commit

Permalink
fix: [crawlers] fix task start
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Dec 12, 2023
1 parent 7e9ea48 commit 9221e53
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,11 +1793,12 @@ def api_add_crawler_capture(data, user_id):
# parent = data.get('parent')

# TODO parent
create_task(task['url'], depth=task['depth_limit'], har=task['har'], screenshot=task['screenshot'],
proxy=task['proxy'], tags=task['tags'],
parent='AIL_capture', task_uuid=task_uuid, external=True)

task_uuid = create_task(task['url'], depth=task['depth_limit'], har=task['har'], screenshot=task['screenshot'],
proxy=task['proxy'], tags=task['tags'],
parent='manual', task_uuid=task_uuid, external=True)
task = CrawlerTask(task_uuid)
create_capture(capture_uuid, task_uuid)
task.start()
return {'uuid': capture_uuid}, 200

###################################################################################
Expand Down

0 comments on commit 9221e53

Please sign in to comment.