Skip to content

Commit

Permalink
Added groundwork for next iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwightt committed Jan 15, 2019
1 parent b4177dc commit 4100398
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

time.sleep(1)

# Need to add graceful shutdown and support for interruptions.
# I.E. Need to be saving the current page in case of shutdown in Redis.
for i in range(2, total_pages):
current_page = get_user_page(current_user, i + 1)
process_user_page(current_page)
Expand Down

0 comments on commit 4100398

Please sign in to comment.