mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-17 15:59:04 +00:00
merge: with v3
This commit is contained in:
@@ -1,4 +1,21 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
ADMIN = 'Admin'
|
||||
USER = 'User'
|
||||
AUDITOR = 'Auditor'
|
||||
|
||||
|
||||
class Trigger(models.TextChoices):
|
||||
manual = 'manual', _('Manual trigger')
|
||||
timing = 'timing', _('Timing trigger')
|
||||
|
||||
|
||||
class Status(models.TextChoices):
|
||||
ready = 'ready', _('Ready')
|
||||
pending = 'pending', _("Pending")
|
||||
running = 'running', _("Running")
|
||||
success = 'success', _("Success")
|
||||
failed = 'failed', _("Failed")
|
||||
error = 'error', _("Error")
|
||||
canceled = 'canceled', _("Canceled")
|
||||
|
5
apps/common/const/crontab.py
Normal file
5
apps/common/const/crontab.py
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
CRONTAB_AT_AM_TWO = '0 14 * * *'
|
||||
CRONTAB_AT_AM_TEN = '0 10 * * *'
|
||||
CRONTAB_AT_PM_TWO = '0 2 * * *'
|
||||
|
Reference in New Issue
Block a user