mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-13 16:47:34 -06:00
Remove job name for scripts
Because scripts are already linked through the Job Instance field, the name is displayed twice. Removing this reduces redundancy and opens up the possibility of simplifying the BackgroundJob framework in future commits.
This commit is contained in:
parent
9f1989c179
commit
257976d815
@ -276,7 +276,6 @@ class ScriptViewSet(ModelViewSet):
|
||||
ScriptJob = import_string("extras.jobs.ScriptJob")
|
||||
ScriptJob.enqueue(
|
||||
instance=script,
|
||||
name=script.python_class.class_name,
|
||||
user=request.user,
|
||||
data=input_serializer.data['data'],
|
||||
request=copy_safe_request(request),
|
||||
|
@ -1169,7 +1169,6 @@ class ScriptView(BaseScriptView):
|
||||
ScriptJob = import_string("extras.jobs.ScriptJob")
|
||||
job = ScriptJob.enqueue(
|
||||
instance=script,
|
||||
name=script_class.class_name,
|
||||
user=request.user,
|
||||
schedule_at=form.cleaned_data.pop('_schedule_at'),
|
||||
interval=form.cleaned_data.pop('_interval'),
|
||||
|
Loading…
Reference in New Issue
Block a user