Skip to content

Allow customization of job timeout for scripts #5479

@DanSheps

Description

@DanSheps

Environment

  • Python version: 3.6.6
  • NetBox version: 2.10.1

Proposed Functionality

  • Add JOB_TIMEOUT to Script base class
  • Add job_timeout=Script.JOB_TIMEOUT to enqueue_job kwarg (per docs, this is popped out on job start)

Use Case

With the move towards background job processing, the time constraint on scripts is no longer as restrictive. I feel allowing customization of the job_timeout per-script would be beneficial (if a job times out, the job is still also listed as "Running", this should be handled separately as a bug)

Database Changes

None

External Dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions