feat: Update domain synchronization frequency
All checks were successful
Build Docker / Build Docker (push) Successful in 26s
All checks were successful
Build Docker / Build Docker (push) Successful in 26s
The code change updates the domain synchronization frequency in the server.py file. Instead of running every hour, it now runs every 5 minutes. This change improves real-time data updates for domains.
This commit is contained in:
parent
8fdb777ba4
commit
e8208b8563
@ -50,7 +50,7 @@ def establish_database_connection():
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
scheduler = BackgroundScheduler()
|
scheduler = BackgroundScheduler()
|
||||||
scheduler.add_job(domains.syncDomains, 'cron', hour='*')
|
scheduler.add_job(domains.syncDomains, 'cron', minute='*/5')
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
|
|
||||||
establish_database_connection()
|
establish_database_connection()
|
||||||
|
Loading…
Reference in New Issue
Block a user