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_updateis flipped toTruevia a save with explicitupdate_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