mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-30 06:12:13 +02:00
* Add sync_interval to DataSource * Enqueue a SyncDataSourceJob when needed after saving a DataSource * Fix logic for clearing pending jobs on interval change * Fix lingering background tasks after modifying DataSource
This commit is contained in:
@@ -59,6 +59,12 @@ class DataSource(JobsMixin, PrimaryModel):
|
||||
verbose_name=_('enabled'),
|
||||
default=True
|
||||
)
|
||||
sync_interval = models.PositiveSmallIntegerField(
|
||||
verbose_name=_('sync interval'),
|
||||
choices=JobIntervalChoices,
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
ignore_rules = models.TextField(
|
||||
verbose_name=_('ignore rules'),
|
||||
blank=True,
|
||||
|
||||
Reference in New Issue
Block a user