Skip to content

Commit

Permalink
msg_process_outbox expects contact method as arg, not var
Browse files Browse the repository at this point in the history
  • Loading branch information
nursix committed Jan 3, 2020
1 parent a45199d commit 824c784
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nursix-dev-3415-gaf16c12 (2020-01-02 10:35:39)
nursix-dev-3416-ga45199d (2020-01-03 14:56:31)
9 changes: 6 additions & 3 deletions models/zzz_1st_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,24 @@ def duration(msg, start):
# Send Messages from Outbox
# SMS every minute
s3task.schedule_task("msg_process_outbox",
vars = {"contact_method":"SMS"},
args = ["SMS"],
vars = {},
period = 120, # seconds
timeout = 120, # seconds
repeats = 0 # unlimited
)
# Emails every 5 minutes
s3task.schedule_task("msg_process_outbox",
vars = {"contact_method":"EMAIL"},
args = ["EMAIL"],
vars = {},
period = 300, # seconds
timeout = 300, # seconds
repeats = 0 # unlimited
)
# Tweets every minute
#s3task.schedule_task("msg_process_outbox",
# vars = {"contact_method":"TWITTER"},
# args = ["TWITTER"],
# vars = {},
# period = 120, # seconds
# timeout = 120, # seconds
# repeats = 0 # unlimited
Expand Down

0 comments on commit 824c784

Please sign in to comment.