mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Introduce job_start and job_end signals, and receivers to process event rules * Complete signals documentation
36 lines
942 B
Markdown
36 lines
942 B
Markdown
# Signals
|
|
|
|
In addition to [Django's built-in signals](https://docs.djangoproject.com/en/stable/topics/signals/), NetBox defines some of its own, listed below.
|
|
|
|
## post_clean
|
|
|
|
This signal is sent by models which inherit from `CustomValidationMixin` at the end of their `clean()` method.
|
|
|
|
### Receivers
|
|
|
|
* `extras.signals.run_custom_validators()`
|
|
|
|
## core.job_start
|
|
|
|
This signal is sent whenever a [background job](../features/background-jobs.md) is started.
|
|
|
|
### Receivers
|
|
|
|
* `extras.signals.process_job_start_event_rules()`
|
|
|
|
## core.job_end
|
|
|
|
This signal is sent whenever a [background job](../features/background-jobs.md) is terminated.
|
|
|
|
### Receivers
|
|
|
|
* `extras.signals.process_job_end_event_rules()`
|
|
|
|
## core.pre_sync
|
|
|
|
This signal is sent when the [DataSource](../models/core/datasource.md) model's `sync()` method is called.
|
|
|
|
## core.post_sync
|
|
|
|
This signal is sent when a [DataSource](../models/core/datasource.md) finishes synchronizing.
|