Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/slack-app #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions requirements.txt

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions src/available_nodes.py → schedule/available_nodes.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
from dotenv import load_dotenv
from src.utils.subprocess_operations import (
from schedule.utils.subprocess_operations import (
get_piped_stdout,
stdout_to_records,
job_records_to_slack_message,
)
from src.hooks.slack import send_slack_message
from schedule.hooks.slack import send_slack_message

load_dotenv()
SLACK_WEBHOOK = os.getenv("SLACK_GPU_JOBS_WEBHOOK")
Expand Down
4 changes: 2 additions & 2 deletions src/gpu_jobs.py → schedule/gpu_jobs.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
from dotenv import load_dotenv
from src.utils.subprocess_operations import (
from schedule.utils.subprocess_operations import (
get_piped_stdout,
stdout_to_records,
job_records_to_slack_message,
)
from src.hooks.slack import send_slack_message
from schedule.hooks.slack import send_slack_message

load_dotenv()
SLACK_WEBHOOK = os.getenv("SLACK_GPU_JOBS_WEBHOOK")
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/my_jobs.py → schedule/my_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from typing import Optional

from dotenv import load_dotenv
from src.hooks.slack import send_slack_message
from src.utils.data_serialization import (
from schedule.hooks.slack import send_slack_message
from schedule.utils.data_serialization import (
read_json_as_job_records,
write_job_records_to_json,
)
from src.utils.subprocess_operations import (
from schedule.utils.subprocess_operations import (
stdout_to_job_records,
RECORDS,
job_records_to_slack_message,
Expand Down
4 changes: 2 additions & 2 deletions src/quota.py → schedule/quota.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
from dotenv import load_dotenv
from src.utils.subprocess_operations import get_piped_stdout, stdout_to_quota_records
from src.hooks.slack import send_slack_message
from schedule.utils.subprocess_operations import get_piped_stdout, stdout_to_quota_records
from schedule.hooks.slack import send_slack_message

load_dotenv()

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.utils.subprocess_operations import (
from schedule import (
strip_empty_string,
job_records_to_slack_message,
)
Expand Down
Loading