def retry_deferred(): from mailer.management.commands.retry_deferred import Command print("Running retry deferred ...\n") cmd = Command() cmd.handle_noargs()
def send_mail(): from mailer.management.commands.send_mail import Command print("Running send_mail task...\n") cmd = Command() cmd.handle_noargs()
def emit_notices(): from notification.management.commands.emit_notices import Command print("Running emit_notice task...\n") cmd = Command() cmd.handle_noargs()
def distribute_offers(): from offer.management.commands.distribute import Command print("Distributing offers: running 2-minute task...\n") cmd = Command() cmd.handle_noargs()
def reset_offer_count(): from offer.management.commands.reset_offer_counts import Command print("Resetting offer counts...\n") cmd = Command() cmd.handle_noargs()
def process_sms(): from offer.management.commands.check_sms import Command print("Running 1-minute task...\n") cmd = Command() cmd.handle_noargs()
def emit_notices(): from notification.management.commands.emit_notices import Command print ("Running emit_notice task...\n") cmd = Command() cmd.handle_noargs()
def send_mail(): from mailer.management.commands.send_mail import Command print ("Running send_mail task...\n") cmd = Command() cmd.handle_noargs()
def reset_offer_count(): from offer.management.commands.reset_offer_counts import Command print ("Resetting offer counts...\n") cmd = Command() cmd.handle_noargs()