V1.30.6 cron settings
This commit is contained in:
@@ -8,6 +8,7 @@ class Notification:
|
||||
fcm = FCM()
|
||||
|
||||
def run(self):
|
||||
print("** Running Notification automation")
|
||||
notification_queryset = notif.Notification.objects.using('live').raw('SELECT * from notification WHERE active = 1')
|
||||
|
||||
for notification in notification_queryset:
|
||||
|
||||
@@ -15,7 +15,7 @@ class MyCronJob(CronJobBase):
|
||||
|
||||
class NotificationJob(CronJobBase):
|
||||
notif = Notification()
|
||||
RUN_EVERY_MINS = 60
|
||||
RUN_EVERY_MINS = 5
|
||||
schedule = Schedule(run_every_mins=RUN_EVERY_MINS)
|
||||
code = 'aitrainer_backoffice.controlling.notification' # a unique code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user