kemuriririn commited on
Commit
078fdd1
·
1 Parent(s): 8668d55

update sync interval

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1223,7 +1223,7 @@ def setup_periodic_tasks():
1223
  scheduler.add_job(sync_database, "interval", minutes=15, id="sync_db_job")
1224
  # Sync preferences more frequently
1225
  scheduler.add_job(sync_preferences_data, "interval", minutes=5, id="sync_pref_job")
1226
- scheduler.add_job(sync_cache_audios_with_hf, "interval", minutes=5, id="sync_cache_audio_job")
1227
  scheduler.start()
1228
  print("Periodic tasks scheduler started (DB sync and Preferences upload)") # Use print for startup
1229
 
 
1223
  scheduler.add_job(sync_database, "interval", minutes=15, id="sync_db_job")
1224
  # Sync preferences more frequently
1225
  scheduler.add_job(sync_preferences_data, "interval", minutes=5, id="sync_pref_job")
1226
+ scheduler.add_job(sync_cache_audios_with_hf, "interval", minutes=30, id="sync_cache_audio_job",next_run_time=datetime.now() + timedelta(seconds=30)) # Start after 30 seconds
1227
  scheduler.start()
1228
  print("Periodic tasks scheduler started (DB sync and Preferences upload)") # Use print for startup
1229