Asynchronous Tasks
Celery tasks for the llmhost app, and how the web server queues them.
llmhost: launch, destroy and delete an LLMHost, and check its status.compute: reconcile LLMHostComputes’ node groups, delete a deleted compute’s node group, and charge for their nodes.dns: the DNS records of LLMHosts’ Ingresses.queue: thequeue_*functions, which are how the manifest brokers, the api, the admin and the receivers change LLMHosts and computes. Only the infrastructure worker writes to the cluster and the cloud (ADR-038, phase 3, issue #1080).
The package exports the queue_* functions, never a task, so that nothing outside
queue queues one (ADR-030, rule 10). Importing queue imports both task
modules, so Celery registers every task, Celery Beat’s included. Anything else, a task that a test runs, or a helper such as
create_dns_record(), is imported from its own module. Each task names itself
smarter.apps.llmhost.tasks.<function> (TASK_NAME_PREFIX), whatever its
module, which is the name that Celery Beat’s schedule uses.