Commit eff9c9c9 by Calen Pennington

Move common attributes into Resolver.__init__

parent 27fd73ac
...@@ -134,7 +134,7 @@ class ScheduleMessageBaseTask(Task): ...@@ -134,7 +134,7 @@ class ScheduleMessageBaseTask(Task):
def run( def run(
self, site_id, target_day_str, day_offset, bin_num, org_list, exclude_orgs=False, override_recipient_email=None, self, site_id, target_day_str, day_offset, bin_num, org_list, exclude_orgs=False, override_recipient_email=None,
): ):
return self.resolver().schedule_bin( return self.resolver(
self.async_send_task, self.async_send_task,
Site.objects.get(id=site_id), Site.objects.get(id=site_id),
deserialize(target_day_str), deserialize(target_day_str),
...@@ -143,7 +143,7 @@ class ScheduleMessageBaseTask(Task): ...@@ -143,7 +143,7 @@ class ScheduleMessageBaseTask(Task):
org_list, org_list,
exclude_orgs=exclude_orgs, exclude_orgs=exclude_orgs,
override_recipient_email=override_recipient_email, override_recipient_email=override_recipient_email,
) ).schedule_bin()
@task(ignore_result=True, routing_key=ROUTING_KEY) @task(ignore_result=True, routing_key=ROUTING_KEY)
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# * @edx/ospr - to check licensing # * @edx/ospr - to check licensing
# * @edx/devops - to check system requirements # * @edx/devops - to check system requirements
attrs==17.2.0
beautifulsoup4==4.1.3 beautifulsoup4==4.1.3
beautifulsoup==3.2.1 beautifulsoup==3.2.1
bleach==1.4 bleach==1.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment