def run(self, site_id, target_day_str, course_key, override_recipient_email=None): site = Site.objects.select_related('configuration').get(id=site_id) with emulate_http_request(site=site): _annotate_for_monitoring(message_types.CourseUpdate(), site, 0, target_day_str, -1) return self.resolver( self.async_send_task, site, deserialize(target_day_str), str(course_key), override_recipient_email, ).send()
def run(self, site_id, target_day_str, course_key, override_recipient_email=None): # lint-amnesty, pylint: disable=arguments-differ set_code_owner_attribute_from_module(__name__) site = Site.objects.select_related('configuration').get(id=site_id) with emulate_http_request(site=site): _annotate_for_monitoring(message_types.CourseUpdate(), site, 0, target_day_str, -1) return self.resolver( self.async_send_task, site, deserialize(target_day_str), str(course_key), override_recipient_email, ).send()
def make_message_type(self, day_offset): return message_types.CourseUpdate()