Skip to content

Commit

Permalink
Cleanup 2
Browse files Browse the repository at this point in the history
Basic cleanup + putting action on a schedule rather than a push.
  • Loading branch information
nataliejschultz committed Jun 17, 2024
1 parent 5139a39 commit 8a93991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test-overpass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ name: overpass-test
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- overpass
# schedule:
schedule:

# # Run every Sunday at 6:05 am
# - cron: '5 6 * * 0'
# Run every Sunday at 6:05 am
- cron: '5 6 * * 0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions emission/net/ext_service/transit_matching/match_stops.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@

def make_request_and_catch(overpass_query):
try:
response = requests.post(url + "api/interpreter", data=overpass_query)

response = requests.post(url + "api/interpreter", data=overpass_query)
except requests.exceptions.ChunkedEncodingError as e:
logging.info("ChunkedEncodingError while creating request %s" % (e))
time.sleep(10)
Expand Down

0 comments on commit 8a93991

Please sign in to comment.