Proca.Server.MTTWorker (proca v3.4.1)
Link to this section Summary
Functions
Return {current_cycle, all_cycles} tuple to know where we are in the schedule
Queries for targets with at least one email that is sendable (status none) Returns list of ids
Query for test emails which were sent, and were created day ago.
Check if we are now in sending days, and also in sending hours.
Link to this section Functions
Link to this function
calculate_cycles(campaign)
Return {current_cycle, all_cycles} tuple to know where we are in the schedule
Link to this function
calculate_cycles_in_day(start_time, end_time)
Link to this function
get_emails_to_send(target_ids, arg)
Link to this function
get_sendable_target_ids(campaign)
Queries for targets with at least one email that is sendable (status none) Returns list of ids
Link to this function
get_test_emails_to_send()
Link to this function
make_email(message, test_email \\ nil)
Link to this function
process_mtt_campaign(campaign)
Link to this function
process_mtt_test_mails()
Link to this function
put_message_content(email, message_content, template)
Link to this function
query_test_emails_to_delete()
Query for test emails which were sent, and were created day ago.
Link to this function
resolve_files(org, file_keys)
Link to this function
send_emails(campaign, msgs)
Link to this function
within_sending_window(map)
Check if we are now in sending days, and also in sending hours.
The Server.MTT select only campaigns in day-window already, but it is worth to double check here.