Skip to content

Commit

Permalink
rockstor#1233 Modified task_def model to reflect crontab execution wi…
Browse files Browse the repository at this point in the history
…ndows field
  • Loading branch information
MFlyer committed Apr 4, 2016
1 parent 40a57ba commit 40e8687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rockstor/smart_manager/models/task_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class TaskDefinition(models.Model):
json_meta = models.CharField(max_length=8192)
enabled = models.BooleanField(default=True)
crontab = models.CharField(max_length=64, null=True)
crontabwindow = models.CharField(max_length=64, blank=True, default='*-*-*-*-*-*')
#Added crontabwindow field to storage exec window value - blank to true for backward compatibility with old scheduled tasks

class Meta:
app_label = 'smart_manager'

0 comments on commit 40e8687

Please sign in to comment.