LLMHostCompute Tasks
The Celery tasks of LLMHostComputes: their node groups, and the charges for their nodes.
reconcile_llmhost_compute(): give a compute’s node group the nodes that its LLMHosts need. It runs again every 30 seconds until the node group is settled, i.e. while a node starts or is removed, and checks the status of the compute’s LLMHosts each time.reconcile_llmhost_computes(): reconcile every compute. Celery Beat runs it every few minutes, so that a node that is no longer needed is removed even if a reconcile failed.delete_llmhost_nodegroup(): delete a deleted compute’s node group, by name.charge_llmhost_computes(): charge an hour of each compute’s running nodes, so that budgets attached to a compute, its owner, or their account see the cost of the infrastructure. It is operational, so it runs in the queue of the other operational tasks, such as charges and budgets; the others call the cloud, and run in the infrastructure queue.