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:
Alexander Haase 2024-07-24 13:14:36 +02:00
parent 9f1989c179
commit 257976d815
2 changed files with 0 additions and 2 deletions

View File

@ -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),

View File

@ -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'),