Change email notification formatting.

Instead of pretty printing the datastructure we'll now dump out the
result in json format with indent=4 for pretty viewing.
This commit is contained in:
Matthew Jones
2016-06-22 11:51:15 -04:00
parent c6cd966fc8
commit c812e85f65
3 changed files with 6 additions and 5 deletions

View File

@@ -269,7 +269,8 @@ def handle_work_error(self, task_id, subtasks=None):
friendly_name = "System Job"
else:
# Unknown task type
break
logger.warn("Unknown task type: {}".format(each_task['type']))
continue
if first_task is None:
first_task = instance
first_task_id = instance.id