Skip to content

Commit

Permalink
Reload the configuration periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
[a511735] nicolas borson committed Jan 31, 2018
1 parent f10c882 commit 4d83bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"min-ratelimit":10,
"min-ratelimit-retweet":20,
"min-ratelimit-search":40,
"config_reload_time":600,
"consumer-key":"",
"consumer-secret":"",
"access-token-key":"",
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def ScanForContests():
scheduler.add_job(CheckRateLimit, 'interval', seconds=Config.rate_limit_update_time)
scheduler.add_job(CheckBlockedUsers, 'interval', seconds=Config.blocked_users_update_time)
scheduler.add_job(ScanForContests, 'interval', seconds=Config.scan_update_time)
scheduler.add_job(Config.load(), 'interval', seconds=Config.config_reload_time)

try:
scheduler.start()
Expand Down

0 comments on commit 4d83bc7

Please sign in to comment.