Update App.py

This commit is contained in:
DJObleezy 2025-03-30 10:11:24 -07:00 committed by GitHub
parent f812a41bca
commit 9988913861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
App.py
View File

@ -563,6 +563,10 @@ def update_config():
)
logging.info(f"Dashboard service reinitialized with new wallet: {new_config.get('wallet')}")
# Update worker service to use the new dashboard service (with the updated wallet)
worker_service.set_dashboard_service(dashboard_service)
logging.info(f"Worker service updated with the new dashboard service")
# Force a metrics update to reflect the new configuration
update_metrics_job(force=True)
logging.info("Forced metrics update after configuration change")