devices.signalsΒΆ

Signals for device model events.

Module ContentsΒΆ

devices.signals.schedule_gds_push_update_on_enable(sender, instance, *, created, update_fields, **kwargs)[source]ΒΆ

Schedule a GDS Push periodic update when the feature is toggled on for a device.

Mirrors the CRL cycle scheduling pattern: whenever opc_gds_push_enable_periodic_update is flipped to True via a save with explicit update_fields, the first update is immediately scheduled via Django-Q2.

Parameters:
  • sender (django.db.models.base.ModelBase) – The model class.

  • instance (devices.models.DeviceModel) – The DeviceModel instance that was saved.

  • created (bool) – Whether the instance was just created.

  • update_fields (frozenset[str] | None) – The fields that were updated, or None if not specified.

  • **kwargs (Any) – Additional keyword arguments.

Return type:

None