Recurring Script Jobs can remain in Running status after their owner is deleted
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start by tracing how scheduled Script Jobs are queued, rescheduled, and saved, including the Job owner and the user stored in the queued request. Reproduce the deleted-owner case and the migrated schedule case with a disabled Script. The issue is resolved when each Job reaches a terminal status, and any schedule that cannot continue records the reason in its log; whether schedules continue without an owner still needs a decision.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Plugin Version
v0.1.0
NetBox Version
v4.7.6
Python Version
3.12
Steps to Reproduce
- Schedule a Script from the UI to run every five minutes.
- Delete the user who scheduled the Script before its next occurrence runs.
- Allow the worker to execute the scheduled occurrence.
- Check the Job's status and whether the next occurrence has been scheduled.
The same scenario should be tested with a migrated schedule whose Script is disabled before its next occurrence.
Expected Behavior
Deleting a schedule's owner should not prevent a Script Job from reaching a terminal status.
If the schedule cannot continue, the reason should be recorded in the Job's log.
Observed Behavior
The queued Job retains a reference to the deleted user. Rescheduling can fail validation, and subsequent attempts to save the Job can raise an IntegrityError.
This may leave the Job in Running status without scheduling its next occurrence.
Additional Context
This was identified during the implementation of #201. Refreshing the owner during class execution does not cover Jobs that fail before reaching that stage or schedules carrying an existing request.
Both the Job's owner and the queued request's user need to be considered.
Whether a schedule should continue without its original owner or stop with an explanatory log entry remains to be decided. Continuing without an owner may also affect change logging and object-change event processing.
- Lenguaje dominante
- Python
- Estrellas
- 9
- Forks
- 0
- Merge medio
- 18 h 59 min
- PR fusionados (30 d)
- 93
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de netbox-community/netbox-scripts
-
app: scripts Bucket: KTLO status: backlog type: housekeeping
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
netbox-community/netbox-scripts#281 ·
Los mantenedores suelen responder en 1 día
-
app: scripts Bucket: Improve complexity: low status: backlog type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
netbox-community/netbox-scripts#244 ·
Los mantenedores suelen responder en 1 día
-
Correct the documentation of a Project's current revisionPosiblemente ocupada @pheus la tomó hoy. Abiertoapp: scripts Bucket: KTLO status: accepted type: documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
netbox-community/netbox-scripts#233 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
app: scripts complexity: medium status: backlog type: feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
netbox-community/netbox-scripts#229 ·
Los mantenedores suelen responder en 1 día
-
app: scripts status: backlog type: housekeeping
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
netbox-community/netbox-scripts#228 ·
Los mantenedores suelen responder en 1 día
Todos los issues de netbox-community/netbox-scripts
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
bad-antics/lateralus-lang#1623 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
fossguild/thelifesnake#82 ·
Los mantenedores suelen responder en 1 día
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorAbiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pietbarber/Manage2Soar#1189 ·
Los mantenedores suelen responder en 1 día
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinatesPosiblemente ocupada @dtgaebe la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sandialabs/WecOptTool#467 ·