diff --git a/.github/workflows/nexus-trusted-traveler-scheduler-1.yml b/.github/workflows/nexus-trusted-traveler-scheduler-1.yml index a0c9fb7e..24ac4806 100644 --- a/.github/workflows/nexus-trusted-traveler-scheduler-1.yml +++ b/.github/workflows/nexus-trusted-traveler-scheduler-1.yml @@ -59,5 +59,5 @@ jobs: pip3 install -r requirements.txt ls -l echo "python3 ttp.py -u ${{ secrets.SLACK_BOT_TOKEN_NEXUS }}" - python3 ttp.py -u "${{ secrets.SLACK_BOT_TOKEN_NEXUS }}" + python3 ttp.py -u "${{ secrets.SLACK_BOT_TOKEN_NEXUS }}" -r 3m echo "Finished and exiting" diff --git a/nexus-global-entry/trusted-traveler-scheduler/trusted-traveler-scheduler/src/schedule_retriever.py b/nexus-global-entry/trusted-traveler-scheduler/trusted-traveler-scheduler/src/schedule_retriever.py index e26e601a..6dbd699e 100644 --- a/nexus-global-entry/trusted-traveler-scheduler/trusted-traveler-scheduler/src/schedule_retriever.py +++ b/nexus-global-entry/trusted-traveler-scheduler/trusted-traveler-scheduler/src/schedule_retriever.py @@ -1,5 +1,6 @@ import time import sqlite3 +import sys from typing import List @@ -173,6 +174,8 @@ def _get_schedule(self, location_id: int) -> None: self.notification_handler.new_appointment(location_id, schedule) + print("exiting...") + sys.exit() except OSError: return