Skip to content

Commit

Permalink
Merge pull request #226 from sanger/hotfix/GPL-826-second-crawler-run
Browse files Browse the repository at this point in the history
GPL-826 second crawler run
  • Loading branch information
KatyTaylor authored Jan 20, 2021
2 parents b53222f + 8ae2569 commit fb58085
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@
if args.once:
main.run(args.sftp, args.keep_files, args.add_to_dart)
else:
time_to_run = "01:00"
print(f"Scheduled to run at {time_to_run}")
schedule.every().day.at(time_to_run).do(
main.run, sftp=args.sftp, keep_files=args.keep_files, add_to_dart=args.add_to_dart
)
times_to_run = ["01:00", "07:30"]
print(f"Scheduled to run at {times_to_run}")

for time_to_run in times_to_run:
schedule.every().day.at(time_to_run).do(
main.run, sftp=args.sftp, keep_files=args.keep_files, add_to_dart=args.add_to_dart
)

while True:
try:
Expand Down

0 comments on commit fb58085

Please sign in to comment.