Skip to content

Commit

Permalink
Fix background update process
Browse files Browse the repository at this point in the history
  • Loading branch information
otherguy committed Jan 8, 2019
1 parent 96ea7b7 commit 49d4522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airports.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def key_for_airports(airport):
# Is cache over 10 days old or non-existent?
if not wf.cached_data_fresh('airports', max_age=60*60*24*10):
wf.logger.info('Airport data is stale, updating in the background...')
run_in_background('update', ['/usr/bin/env python', wf.workflowfile('airports.py'), '--update'])
run_in_background('update', ['/usr/bin/env', 'python', wf.workflowfile('airports.py'), '--update'])

if is_running('update'):
wf.logger.debug('Waiting for update to finish.')
Expand Down

0 comments on commit 49d4522

Please sign in to comment.