Skip to content

Possibility to schedule script in the past #20524

@rizlas

Description

@rizlas

NetBox Edition

NetBox Community

NetBox Version

v4.3.7

Python Version

3.10

Steps to Reproduce

  1. Create a schedule via api with a date in the past
curl -X POST \
-H "Authorization: Token TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json; indent=4" \
https://netbox/api/extras/scripts/your_script/ \
--data '{"data": {}, "schedule_at": "2023-10-07 08:11:00", "interval": 360, "commit": true}'

Expected Behavior

Error from API

Observed Behavior

The script is scheduled, it starts immediately and will keep to schedule new jobs without stopping.

Image

Metadata

Metadata

Assignees

Labels

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

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions