diff --git a/.github/workflows/nexus-trusted-traveler-scheduler-1.yml b/.github/workflows/nexus-trusted-traveler-scheduler-1.yml index fec77545..6df933fb 100644 --- a/.github/workflows/nexus-trusted-traveler-scheduler-1.yml +++ b/.github/workflows/nexus-trusted-traveler-scheduler-1.yml @@ -7,7 +7,7 @@ on: # Push is for testing only to allow you to test this workflow without # a merge and just a push. # push: - # pull_request: + pull_request: # types: # - closed # branches: @@ -23,9 +23,9 @@ on: ## │ │ │ │ │ ## │ │ │ │ │ ## * * * * * - schedule: - ## Testing run every 5 minutes - - cron: '*/5 * * * *' +# schedule: +# ## Testing run every 5 minutes +# - cron: '*/5 * * * *' ## Run every 5 hours on minute 37 # - cron: '37 */5 * * *' 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..d26815f3 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 @@ -147,11 +147,9 @@ def _get_schedule(self, location_id: int) -> None: """ try: time.sleep(1) - print("getting schedule") appointments = requests.get( GOES_URL_FORMAT.format(location_id), timeout=30 ).json() - print("got schedule") if not appointments: print(f"{datetime.today():%Y/%m/%d %H:%M:%S}: No active appointments available for location {location_id}.")