netbox/docs
Alexander Haase 4bba92617d
Closes #16971: Add system jobs (#17716)
* Fix check for existing jobs

If a job is to be enqueued once and no specific scheduled time is
specified, any scheduled time of existing jobs will be valid. Only if a
specific scheduled time is specified for 'enqueue_once()' can it be
evaluated.

* Allow system jobs to be registered

A new registry key allows background system jobs to be registered and
automatically scheduled when rqworker starts.

* Test scheduling of system jobs

* Fix plugins scheduled job documentation

The documentation reflected a non-production state of the JobRunner
framework left over from development. Now a more practical example
demonstrates the usage.

* Allow plugins to register system jobs

* Rename system job metadata

To clarify which meta-attributes belong to system jobs, each of them is
now prefixed with 'system_'.

* Add predefined job interval choices

* Remove 'system_enabled' JobRunner attribute

Previously, the 'system_enabled' attribute was used to control whether a
job should run or not. However, this can also be accomplished by
evaluating the job's interval.

* Fix test

* Use a decorator to register system jobs

* Specify interval when registering system job

* Update documentation

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-01 14:56:08 -04:00
..
_theme Closes #16669: Include a notice when rendering docs locally 2024-09-17 14:44:51 -04:00
administration Fix social auth for Entra ID 2024-10-18 10:45:34 -04:00
configuration 15093 Allow plugins to register events pipeline (#17717) 2024-10-18 12:47:16 -04:00
customization 17468 add warning to documentation about overriding custom script properties 2024-10-16 12:57:26 -04:00
development Update adding-models.md to reflect changes to get_absolute_url 2024-10-29 09:15:24 -04:00
features Rename Microsoft Azure AD to Entra ID 2024-10-03 13:25:48 -04:00
getting-started Closes: #9047 - Add Provider Accounts (#12057) 2023-03-29 08:27:11 -04:00
installation Fixes #16016: Correct typo 2024-05-08 10:15:43 -04:00
integrations Closes #17288: Limit the number of aliases within a GraphQL API requests to 10 (#17329) 2024-09-02 09:30:41 -04:00
media Add instructions for authenticating using Google oauth2 (#17527) 2024-10-18 09:36:29 -04:00
models 7699 Add Scope to Cluster (#17848) 2024-11-01 14:18:23 -04:00
plugins Closes #16971: Add system jobs (#17716) 2024-11-01 14:56:08 -04:00
reference Clean up the Markdown reference guide 2024-03-26 16:26:47 -04:00
release-notes Release v4.1.5 2024-10-28 16:59:44 -04:00
extra.css Fixes: #17732 - Add a background-color to img elements in docs to ensure readability in dark mode (#17790) 2024-10-18 10:47:05 -04:00
index.md Fixes: #17732 - Add a background-color to img elements in docs to ensure readability in dark mode (#17790) 2024-10-18 10:47:05 -04:00
introduction.md Documentation cleanup 2023-12-05 08:05:44 -05:00
netbox_logo_dark.svg Fixes: #17732 - Add a background-color to img elements in docs to ensure readability in dark mode (#17790) 2024-10-18 10:47:05 -04:00
netbox_logo_light.svg Fixes: #17732 - Add a background-color to img elements in docs to ensure readability in dark mode (#17790) 2024-10-18 10:47:05 -04:00