16927: Move JobRunner from utilities to netbox

This commit is contained in:
Jeremy Stretch
2024-08-01 13:57:19 -04:00
parent 8e6987edbf
commit 80fc9abb03
5 changed files with 5 additions and 5 deletions

View File

@@ -10,12 +10,12 @@ For example, your plugin might need to fetch data from a remote system. Dependin
A background job implements a basic [Job](../../models/core/job.md) executor for all kinds of tasks. It has logic implemented to handle the management of the associated job object, rescheduling of periodic jobs in the given interval and error handling. Adding custom jobs is done by subclassing NetBox's `JobRunner` class.
::: utilities.jobs.JobRunner
::: netbox.jobs.JobRunner
#### Example
```python title="jobs.py"
from utilities.jobs import JobRunner
from netbox.jobs import JobRunner
class MyTestJob(JobRunner):
@@ -47,7 +47,7 @@ As described above, jobs can be scheduled for immediate execution or at any late
#### Example
```python title="jobs.py"
from utilities.jobs import JobRunner
from netbox.jobs import JobRunner
class MyHousekeepingJob(JobRunner):