def _create_task_log_info(self, task_id, fail_mode=None):
info_to_monitor = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT:status>', '<STR_LIT:id>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>task_log_info = {"<STR_LIT>" + k: self.tasks[task_id][k] for k in info_to_monitor}<EOL>task_log_info['<STR_LIT>'] = self.run_id<EOL>task_log_info['<STR_LIT>'] = datetime.datetime.now()<EOL>task_log_info['<STR_LIT>'] = self.tasks[task_id]['<STR_LIT:status>'].name<EOL>task_log_info['<STR_LIT>'] = self.tasks_failed_count<EOL>task_log_info['<STR_LIT>'] = self.tasks_completed_count<EOL>task_log_info['<STR_LIT>'] = str(self.tasks[task_id]['<STR_LIT>'].get('<STR_LIT>', None))<EOL>task_log_info['<STR_LIT>'] = str(self.tasks[task_id]['<STR_LIT>'].get('<STR_LIT>', None))<EOL>task_log_info['<STR_LIT>'] = self.tasks[task_id]['<STR_LIT>'].get('<STR_LIT>', None)<EOL>task_log_info['<STR_LIT>'] = self.tasks[task_id]['<STR_LIT>'].get('<STR_LIT>', None)<EOL>task_log_info['<STR_LIT>'] = None<EOL>if self.tasks[task_id]['<STR_LIT>'] is not None:<EOL><INDENT>task_log_info['<STR_LIT>'] = "<STR_LIT:U+002C>".join([str(t._tid) for t in self.tasks[task_id]['<STR_LIT>']])<EOL><DEDENT>task_log_info['<STR_LIT>'] = None<EOL>if self.tasks[task_id]['<STR_LIT>'] is not None:<EOL><INDENT>task_log_info['<STR_LIT>'] = (self.tasks[task_id]['<STR_LIT>'] -<EOL>self.tasks[task_id]['<STR_LIT>']).total_seconds()<EOL><DEDENT>if fail_mode is not None:<EOL><INDENT>task_log_info['<STR_LIT>'] = fail_mode<EOL><DEDENT>return task_log_info<EOL>
Create the dictionary that will be included in the log.