From 212262dc7d16e8fcb8ecfa19a6a886da34b2a347 Mon Sep 17 00:00:00 2001 From: Alexander Haase Date: Mon, 1 Jul 2024 00:49:53 +0200 Subject: [PATCH] Ensure consitent code style --- netbox/utilities/jobs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/netbox/utilities/jobs.py b/netbox/utilities/jobs.py index b71774887..f47b13b4b 100644 --- a/netbox/utilities/jobs.py +++ b/netbox/utilities/jobs.py @@ -7,6 +7,10 @@ from rq.timeouts import JobTimeoutException from core.choices import JobStatusChoices from core.models import Job +__all__ = ( + 'BackgroundJob', +) + class BackgroundJob(ABC): """ @@ -18,7 +22,7 @@ class BackgroundJob(ABC): @classmethod @abstractmethod - def run(cls, *args, **kwargs) -> None: + def run(cls, *args, **kwargs): """ Run the job. @@ -62,7 +66,7 @@ class BackgroundJob(ABC): """ Enqueue a new `BackgroundJob`. - This method is a wrapper of `Job.enqueue` using `handle()` as function callback. See its documentation for + This method is a wrapper of `Job.enqueue()` using `handle()` as function callback. See its documentation for parameters. """ return Job.enqueue(cls.handle, *args, **kwargs)