Skip to content

Commit

Permalink
nexus6
Browse files Browse the repository at this point in the history
  • Loading branch information
garland committed Aug 18, 2024
1 parent 6f4d624 commit a361593
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nexus-trusted-traveler-scheduler-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 * * *'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}.")
Expand Down

0 comments on commit a361593

Please sign in to comment.