MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / app_started_callback

Function app_started_callback

modules/script_callbacks.py:247–253  ·  view source on GitHub ↗
(demo: Optional[Blocks], app: FastAPI)

Source from the content-addressed store, hash-verified

245
246
247def app_started_callback(demo: Optional[Blocks], app: FastAPI):
248 for c in ordered_callbacks('app_started'):
249 try:
250 c.callback(demo, app)
251 timer.startup_timer.record(os.path.basename(c.script))
252 except Exception:
253 report_exception(c, 'app_started_callback')
254
255
256def app_reload_callback():

Callers

nothing calls this directly

Calls 3

ordered_callbacksFunction · 0.85
report_exceptionFunction · 0.85
recordMethod · 0.80

Tested by

no test coverage detected