def _enqueue_feedback_thread_status_change_email_task(user_id, reference, old_status, new_status):
 payload = {'user_id': user_id, 'reference_dict': reference.to_dict(), 'old_status': old_status, 'new_status': new_status}
 taskqueue_services.enqueue_task(feconf.TASK_URL_FEEDBACK_STATUS_EMAILS, payload, 0)

def _enqueue_feedback_thread_status_change_email_task ( user_id , reference , old_status , new_status ) : payload = { 'user_id' : user_id , 'reference_dict' : reference . to_dict ( ) , 'old_status' : old_status , 'new_status' : new_status } taskqueue_services . enqueue_task ( feconf . TASK_URL_FEEDBACK_STATUS_EMAILS , payload , 0 )
adds a task for sending email when a feedback thread status is changed .