-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Fixes #8366 - Add job scheduling #10417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jeremystretch
merged 20 commits into
netbox-community:feature
from
kkthxbye-code:8366-job-scheduling
Oct 21, 2022
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
824b4e0
Add scheduling for reports and scripts
kkthxbye-code 25ac1ed
Merge branch 'netbox-community:develop' into 8366-job-scheduling
kkthxbye-code c8671ce
Update yarn.lock (flatpickr bump)
cbb3378
Job Scheduling WIP
kkthxbye-code 06dea8e
WIP: Moving JobResults out of the admin panel
53c8a48
Merge branch 'feature' into 8366-job-scheduling
kkthxbye-code 679a9e8
Work on job scheduling:
kkthxbye-code ef0b455
Called super delete method before deleting JobResult task.
kkthxbye-code 1d9808a
Added scheduled_time field to JobResult model
kkthxbye-code d647983
Always activate scheduler functionality when running the rqworker man…
kkthxbye-code 074082d
Allow export of JobResult table
kkthxbye-code e143038
Remove JobResult view from admin panel
kkthxbye-code f797b5e
Add scheduled_time to JobResultSerializer
kkthxbye-code 52faeb6
Added documentation describing job scheduling
kkthxbye-code 83ff99a
Added delete button to script/report result
4f95c5a
Allow scheduling jobs via. the API
kkthxbye-code 8939254
Merge branch 'feature' into 8366-job-scheduling
jeremystretch ed2f7f1
Job scheduling review changes
kkthxbye-code 72ba570
PEP8 fix
kkthxbye-code 5e5228f
Fix JobResultFilterset to use DateTimeField to perserve bc compat
kkthxbye-code File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| from django import forms | ||
|
|
||
| from utilities.forms import BootstrapMixin, DateTimePicker | ||
|
|
||
| __all__ = ( | ||
| 'ReportForm', | ||
| ) | ||
|
|
||
|
|
||
| class ReportForm(BootstrapMixin, forms.Form): | ||
| schedule_at = forms.DateTimeField( | ||
| required=False, | ||
| widget=DateTimePicker(), | ||
| label="Schedule at", | ||
| help_text="Schedule execution of report to a set time", | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Generated by Django 4.1.1 on 2022-10-09 18:37 | ||
|
|
||
| from django.db import migrations | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('extras', '0078_unique_constraints'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterModelOptions( | ||
| name='jobresult', | ||
| options={'ordering': ['-created']}, | ||
| ), | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.