-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
163 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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 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 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
57 changes: 57 additions & 0 deletions
57
scheduler/migrations/0017_remove_crontask_repeat_crontask_failed_runs_and_more.py
This file contains 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,57 @@ | ||
# Generated by Django 5.0.1 on 2024-01-10 17:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('scheduler', '0016_rename_jobarg_taskarg_rename_jobkwarg_taskkwarg_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='crontask', | ||
name='repeat', | ||
), | ||
migrations.AddField( | ||
model_name='crontask', | ||
name='failed_runs', | ||
field=models.PositiveIntegerField(default=0, help_text='Number of times the task has failed', verbose_name='failed runs'), | ||
), | ||
migrations.AddField( | ||
model_name='crontask', | ||
name='last_failed_run', | ||
field=models.DateTimeField(blank=True, help_text='Last time the task has failed', null=True, verbose_name='last failed run'), | ||
), | ||
migrations.AddField( | ||
model_name='crontask', | ||
name='last_successful_run', | ||
field=models.DateTimeField(blank=True, help_text='Last time the task has succeeded', null=True, verbose_name='last successful run'), | ||
), | ||
migrations.AddField( | ||
model_name='crontask', | ||
name='successful_runs', | ||
field=models.PositiveIntegerField(default=0, help_text='Number of times the task has succeeded', verbose_name='successful runs'), | ||
), | ||
migrations.AddField( | ||
model_name='repeatabletask', | ||
name='failed_runs', | ||
field=models.PositiveIntegerField(default=0, help_text='Number of times the task has failed', verbose_name='failed runs'), | ||
), | ||
migrations.AddField( | ||
model_name='repeatabletask', | ||
name='last_failed_run', | ||
field=models.DateTimeField(blank=True, help_text='Last time the task has failed', null=True, verbose_name='last failed run'), | ||
), | ||
migrations.AddField( | ||
model_name='repeatabletask', | ||
name='last_successful_run', | ||
field=models.DateTimeField(blank=True, help_text='Last time the task has succeeded', null=True, verbose_name='last successful run'), | ||
), | ||
migrations.AddField( | ||
model_name='repeatabletask', | ||
name='successful_runs', | ||
field=models.PositiveIntegerField(default=0, help_text='Number of times the task has succeeded', verbose_name='successful runs'), | ||
), | ||
] |
This file contains 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 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 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 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