mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Refactor channel stats fetching and enhance settings UI for better user experience
This commit is contained in:
parent
ca79cc1a1d
commit
d709d92936
4 changed files with 213 additions and 90 deletions
|
|
@ -198,10 +198,8 @@ CELERY_TASK_SERIALIZER = "json"
|
|||
|
||||
CELERY_BEAT_SCHEDULER = "django_celery_beat.schedulers.DatabaseScheduler"
|
||||
CELERY_BEAT_SCHEDULE = {
|
||||
"fetch-channel-statuses": {
|
||||
"task": "apps.proxy.tasks.fetch_channel_stats", # Direct task call
|
||||
"schedule": 2.0, # Every 2 seconds
|
||||
},
|
||||
# Remove the frequent fetch-channel-statuses task
|
||||
# Stats are now fetched via API calls from the frontend
|
||||
"scan-files": {
|
||||
"task": "core.tasks.scan_and_process_files", # Direct task call
|
||||
"schedule": 20.0, # Every 20 seconds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue