Skip to content

Commit

Permalink
update webhook:
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrychu committed Jan 23, 2024
1 parent af077e6 commit 073603b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpu_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from hooks.slack import send_slack_message

load_dotenv()
SLACK_WEBHOOK = os.getenv("SLACK_JOB_WEBHOOK")
SLACK_WEBHOOK = os.getenv("SLACK_GPU_JOBS_WEBHOOK")


def get_gpu_jobs() -> str:
Expand All @@ -15,7 +15,7 @@ def get_gpu_jobs() -> str:

def monitor():
gpu_jobs = get_gpu_jobs()
gpu_records = stdout_to_gpu_records(gpu_jobs)
gpu_records = stdout_to_gpu_records(gpu_jobs)
slack_message = job_records_to_slack_message("🔉 Currently Running GPU Jobs\n", gpu_records)
send_slack_message(slack_message, SLACK_WEBHOOK)

Expand Down

0 comments on commit 073603b

Please sign in to comment.