Skip to content

Commit

Permalink
KPMP-5665: turn off slack for now
Browse files Browse the repository at this point in the history
  • Loading branch information
zwright committed Dec 17, 2024
1 parent d9697b2 commit a0decea
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions scripts/packageChecker/packageChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

slack_passcode = os.environ.get('slack_passcode')
logger = logging.getLogger("packageChecker")
logging.basicConfig(level=logging.ERROR)
logging.basicConfig(level=logging.DEBUG)
slack_url = "https://hooks.slack.com/services/" + slack_passcode
data_directory = os.environ.get('data_directory')

Expand Down Expand Up @@ -116,22 +116,22 @@ def find_empty_packages(self, move_derived=False):
extra_files_csv.close()
if len(empty_package_list) > 0:
message = "Missing files in packages: " + ', '.join(empty_package_list)
requests.post(
slack_url,
headers={'Content-type': 'application/json', },
data='{"text":"' + message + '"}')
# requests.post(
# slack_url,
# headers={'Content-type': 'application/json', },
# data='{"text":"' + message + '"}')
if len(missing_package_list) > 0:
message = "Missing package directories for packages: " + ', '.join(missing_package_list)
requests.post(
slack_url,
headers={'Content-type': 'application/json', },
data='{"text":"' + message + '"}')
# requests.post(
# slack_url,
# headers={'Content-type': 'application/json', },
# data='{"text":"' + message + '"}')
if len(extra_package_list) > 0:
message = "Extra files for packages: " + ', '.join(extra_package_list)
requests.post(
slack_url,
headers={'Content-type': 'application/json', },
data='{"text":"' + message + '"}')
# requests.post(
# slack_url,
# headers={'Content-type': 'application/json', },
# data='{"text":"' + message + '"}')

def move_file_to_derived(self, package_directory, file_name):
derived_dir = package_directory + "/derived"
Expand Down

0 comments on commit a0decea

Please sign in to comment.