Skip to content

Commit

Permalink
Updates syntax for live settings, turns down hi.
Browse files Browse the repository at this point in the history
  • Loading branch information
skoczen committed May 18, 2019
1 parent 505df35 commit f8d295c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inkshop/apps/inkmail/tasks.py
Expand Up @@ -12,7 +12,7 @@
from inkmail.models import Subscription, OutgoingMessage, Person, Message


@periodic_task(run_every=datetime.timedelta(seconds=5), expires=10)
@periodic_task(run_every=datetime.timedelta(seconds=120), expires=10)
def hello():
message = "Hi at %s" % timezone.now()
print(message)
Expand Down Expand Up @@ -64,7 +64,7 @@ def send_outgoing_message(om_pk):

@periodic_task(run_every=datetime.timedelta(minutes=5), expires=1200)
def check_for_unsubscribes():
if settings.hasattr(settings, "IS_LIVE") and settings.IS_LIVE:
if hasattr(settings, "IS_LIVE") and settings.IS_LIVE:
base_mailgun_url = "https://api.mailgun.net/v3/%s/" % (
settings.MAILGUN_SENDER_DOMAIN,
)
Expand Down

0 comments on commit f8d295c

Please sign in to comment.