tdfs4ds.serve.config_checks¶
tdfs4ds.serve.config_checks
¶
The configuration check, kept for the admin app (0.3.7.4).
diagnostics.check_configuration is the authority; this module decides when it runs
in the app and keeps its last answers so the rest of the app (the capabilities, the
status bar) can read them without running anything:
- after a successful connect (startup, the Connect page, a store switch): the checks that
need the database session run at once on the calling thread (
DATABASE_CHECKS: they use teradataml's shared connection, so they never run in the background), and the others run as one background job (they make network calls: the model, the Vector Store, MCP); - every
TDFS4DS_SERVE_CONFIG_CHECK_HOURShours (default 6,0= off): only the checks that make no model call (PERIODIC_CHECKS), and only when no other background job runs, so a check never competes with a documentation run; - on demand: the Parameters card; whatever it ran updates the cache.
The cache is {name: row}, each row stamped with ran_at -- a run of a subset keeps
the rows it did not run.
DATABASE_CHECKS
module-attribute
¶
PERIODIC_CHECKS
module-attribute
¶
record
¶
Merge a report's rows into the cache (a subset run keeps the other rows).
run_database_checks
¶
The checks that use the database session, now, on this thread.
run_background_checks
¶
Everything that does not use the session, as one background job.
on_connected
¶
After a successful connect: the session checks now, the rest in the background.
maybe_run_periodic
¶
Run the cheap subset when it is due and nothing else is running. True if started.