django-orchestra/orchestra/contrib/mailer/management/commands/sendpendingmessages.py

13 lines
293 B
Python
Raw Normal View History

2023-07-09 07:51:51 +00:00
from django.core.management.base import BaseCommand
from orchestra.contrib.tasks.decorators import keep_state
from ...engine import send_pending
class Command(BaseCommand):
help = 'Runs Orchestra method.'
def handle(self, *args, **options):
keep_state(send_pending)()