LLMClient Task Utils

Celery tasks for llmclient app.

These tasks are long-running and/or i/o intensive operations that are managed by Celery. They are intended to be called asynchronously from the main application.

smarter.apps.llmclient.tasks.utils.apply_ingress_manifest(domain)[source]

Create, or update, the Kubernetes ingress of an llmclient’s hostname.

cert-manager issues the hostname’s TLS certificate for the ingress, into the secret <domain>-tls.

Parameters:

domain (str) – The hostname, e.g. an llmclient’s default host or custom host.

Raises:

SmarterException – If the manifest cannot be applied.

Return type:

None

smarter.apps.llmclient.tasks.utils.is_taskable()[source]

Whether the cloud’s DNS and certificate services are ready for task processing.

Return type:

bool