MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / _get_task

Function _get_task

botasaurus_server/botasaurus_server/task_results.py:25–30  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

23 return results
24
25def _get_task(id):
26 task_path = os.path.join(path_task_results_tasks, str(id) + ".json")
27 if not _has(task_path):
28 return None
29 # raise JsonHTTPResponseWithMessage(f"No task with id:{id} found.")
30 return _get(task_path)
31
32
33def create_cache_key(scraper_name, data):

Callers 1

get_taskMethod · 0.85

Calls 3

_hasFunction · 0.90
joinMethod · 0.80
_getFunction · 0.70

Tested by

no test coverage detected