Skip to content

Exception for job details if object not set #17086

Closed
@alehaa

Description

@alehaa

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, d6432fb introduced the job object being optional around the same time.

Metadata

Metadata

Assignees

Labels

betaConcerns a bug/feature in a beta releaseseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions