Skip to content

Commit

Permalink
fix: auth token in worker
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Nov 2, 2023
1 parent 23064a9 commit 77863d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/worker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
def execute_scheduled_runs_task():
res = requests.get(
f"{Config.SERVER_URL}/schedule/due",
headers={"Authorization": f"Bearer {Config.AUTH_TOKEN}"},
headers={"Authorization": f"Bearer {Config.SERVER_AUTH_TOKEN}"},
)

schedules_with_configs = res.json()
Expand All @@ -59,7 +59,7 @@ def execute_scheduled_runs_task():
def execute_single_schedule_task(schedule_id: str):
res = requests.post(
f"{Config.SERVER_URL}/schedule/{schedule_id}/run",
headers={"Authorization": f"Bearer {Config.AUTH_TOKEN}"},
headers={"Authorization": f"Bearer {Config.SERVER_AUTH_TOKEN}"},
)
return res.json()

Expand All @@ -73,7 +73,7 @@ def execute_single_schedule_task(schedule_id: str):
def register_fine_tunings_task():
res = requests.get(
f"{Config.SERVER_URL}/fine-tuning/pending",
headers={"Authorization": f"Bearer {Config.AUTH_TOKEN}"},
headers={"Authorization": f"Bearer {Config.SERVER_AUTH_TOKEN}"},
)
fine_tunings = res.json()

Expand All @@ -90,7 +90,7 @@ def register_fine_tunings_task():
def check_single_fine_tuning_task(fine_tuning_id: str):
res = requests.post(
f"{Config.SERVER_URL}/fine-tuning/{fine_tuning_id}/check",
headers={"Authorization": f"Bearer {Config.AUTH_TOKEN}"},
headers={"Authorization": f"Bearer {Config.SERVER_AUTH_TOKEN}"},
)
return res

Expand Down

0 comments on commit 77863d6

Please sign in to comment.