mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
17444 cleanup
This commit is contained in:
parent
919d16cbd3
commit
3082b20bf5
@ -100,9 +100,7 @@ class JobRunner(ABC):
|
||||
This method is a wrapper of `Job.enqueue()` using `handle()` as function callback. See its documentation for
|
||||
parameters.
|
||||
"""
|
||||
name = kwargs.pop('name', None)
|
||||
if not name:
|
||||
name = cls.name
|
||||
name = kwargs.pop('name', None) or cls.name
|
||||
|
||||
return Job.enqueue(cls.handle, name=name, *args, **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user