Exception for job details if object not set #10054

Closed
opened 2025-12-29 21:26:15 +01:00 by adam · 2 comments
Owner

Originally created by @alehaa on GitHub (Aug 6, 2024).

Originally assigned to: @alehaa on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.1-beta1

Python Version

3.11

Steps to Reproduce

  1. Create a new JobRunner.
  2. Schedule the job runner without an instance being passed to enqueue().
  3. Navigate to jobs view
  4. Open List item for newly created job

Expected Behavior

Job details are shown.

Observed Behavior

An exception is raised due to accessing _meta of the Job's object. However object is None as scheduled above.

This is due to 3028f26 introducing breadcrumbs for jobs. However, d6432fbcb8 introduced the job object being optional around the same time.

Originally created by @alehaa on GitHub (Aug 6, 2024). Originally assigned to: @alehaa on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.1-beta1 ### Python Version 3.11 ### Steps to Reproduce 1. Create a new `JobRunner`. 2. Schedule the job runner without an instance being passed to `enqueue()`. 3. Navigate to jobs view 4. Open List item for newly created job ### Expected Behavior Job details are shown. ### Observed Behavior An exception is raised due to accessing `_meta` of the Job's `object`. However `object` is `None` as scheduled above. This is due to 3028f26 introducing breadcrumbs for jobs. However, d6432fbcb886a8d900b2b24df85512371fa78d80 introduced the job object being optional around the same time.
adam added the type: bugstatus: acceptedbetaseverity: low labels 2025-12-29 21:26:15 +01:00
adam closed this issue 2025-12-29 21:26:15 +01:00
Author
Owner

@arthanson commented on GitHub (Aug 6, 2024):

@alehaa do you want to take this one?

@arthanson commented on GitHub (Aug 6, 2024): @alehaa do you want to take this one?
Author
Owner

@alehaa commented on GitHub (Aug 6, 2024):

@arthanson yep!

@alehaa commented on GitHub (Aug 6, 2024): @arthanson yep!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10054