Signals
Signals of the llmhost app.
They are sent by smarter.apps.llmhost.services.LLMHostService at each step of an
LLMHost’s lifecycle. Each has the arguments llmhost (LLMHost), plus those listed.
Example:
from django.dispatch import receiver
from smarter.apps.llmhost.signals import llmhost_status_changed
@receiver(llmhost_status_changed)
def notify(sender, llmhost, old_status, new_status, **kwargs):
...
- smarter.apps.llmhost.signals.llmhost_destroyed = <django.dispatch.dispatcher.Signal object>
Sent when an LLMHost’s Kubernetes resources are deleted.
Arguments: llmhost, purge (bool).
- smarter.apps.llmhost.signals.llmhost_launch_failed = <django.dispatch.dispatcher.Signal object>
Sent when an LLMHost cannot be launched.
Arguments: llmhost, error (str).
- smarter.apps.llmhost.signals.llmhost_launched = <django.dispatch.dispatcher.Signal object>
Sent when an LLMHost’s Kubernetes resources are applied.
Arguments: llmhost, resources (list[dict]).
- smarter.apps.llmhost.signals.llmhost_status_changed = <django.dispatch.dispatcher.Signal object>
Sent when a status check changes an LLMHost’s status.
Arguments: llmhost, old_status, new_status, observation.