Skip to content

Commit

Permalink
fixup! feat: Add task processing API
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin committed Jun 7, 2024
1 parent a16e617 commit e0d60c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"],
Expand Down

0 comments on commit e0d60c2

Please sign in to comment.