DNS Records
The DNS records of LLMHosts’ Ingresses, which the llmhost tasks create and delete.
An LLMHost whose Ingress has the hostname that Smarter chose, e.g. qwen.3141-5926-5359.api.example.com, gets a
DNS A record, as an LLMClient does, when DNS records are enabled. create_dns_record() calls the DNS provider,
and so runs only in the infrastructure worker, in launch_llmhost. destroy_dns_record() queues the LLMClient
app’s destroy_domain_A_record task.
- smarter.apps.llmhost.tasks.dns.create_dns_record(llmhost)[source]
Create the DNS A record of the LLMHost’s default Ingress hostname, if DNS is enabled.
Calls the DNS provider, e.g. Route53. Errors are logged, not raised.
- smarter.apps.llmhost.tasks.dns.destroy_dns_record(llmhost)[source]
Queue the Celery task that deletes the DNS A record of the LLMHost’s default Ingress hostname, if DNS is enabled.
- smarter.apps.llmhost.tasks.dns.dns_enabled()[source]
Whether LLMHost tasks manage DNS records, like LLMClient tasks.
- Return type: