Skip to content

Custom Script Scheduling Broken #17921

@wz4

Description

@wz4

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.6

Python Version

3.10

Steps to Reproduce

In Netbox v4.1.6 schedule a recurring custom script. The first job will get scheduled, but subsequent jobs are not.

Test Script

from extras.scripts import Script

class TestScript(Script):
    class Meta:
        name = "Test Script"
        description = "Hello"
        scheduling_enabled = True

    def run(self, data, commit):

        return "HELLO"

Expected Behavior

After a scheduled job completes, the next scheduled job should appear with a status of 'Scheduled'.

Observed Behavior

No observed error

Metadata

Metadata

Assignees

Labels

severity: 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