mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-01-16 11:02:11 +01:00
Implement data integration tasks with Celery, including periodic fetching and manual refresh of chat data; add utility functions for data processing and transcript handling; create views and URLs for manual data refresh; establish Redis and Celery configuration; enhance error handling and logging; introduce scripts for data cleanup and fixing dashboard data; update documentation for Redis and Celery setup and troubleshooting.
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
from data_integration.utils import fetch_and_store_chat_data
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Fetches chat data from the external API and stores it in the database"
|
||||
|
||||
def handle(self, *_args, **_options): # Mark as unused
|
||||
self.stdout.write(self.style.SUCCESS("Starting data fetch..."))
|
||||
fetch_and_store_chat_data()
|
||||
self.stdout.write(self.style.SUCCESS("Successfully fetched and stored chat data."))
|
||||
Reference in New Issue
Block a user