From e0d60c21e514556f26fd9028a99d4833c14d1025 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 7 Jun 2024 10:51:21 +0200 Subject: [PATCH] fixup! feat: Add task processing API --- lib/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/main.py b/lib/main.py index a5f573e..6f3c395 100644 --- a/lib/main.py +++ b/lib/main.py @@ -41,8 +41,6 @@ def run(self, *args, **kwargs): # pylint: disable=unused-argument task_type_ids.add("core:text2text:" + task) while True: - # Reset user - nc.set_user("") response = nc.providers.task_processing.next_task(list(task_type_ids)) if not isinstance(response, dict): time.sleep(5) @@ -53,8 +51,6 @@ def run(self, *args, **kwargs): # pylint: disable=unused-argument print(task) print(provider) - nc.set_user(task["userId"]) - # TODO: Remove stub nc.providers.task_processing.report_result( task["id"],