def _clear_celery_task_data(self, my_task):
<EOL>if '<STR_LIT>' in my_task.internal_data:<EOL><INDENT>history = my_task._get_internal_data('<STR_LIT>', [])<EOL>history.append(my_task._get_internal_data('<STR_LIT>'))<EOL>del my_task.internal_data['<STR_LIT>']<EOL>my_task._set_internal_data(task_history=history)<EOL><DEDENT>if '<STR_LIT>' in my_task.internal_data:<EOL><INDENT>del my_task.internal_data['<STR_LIT>']<EOL><DEDENT>if '<STR_LIT:error>' in my_task.internal_data:<EOL><INDENT>del my_task.internal_data['<STR_LIT:error>']<EOL><DEDENT>if hasattr(my_task, '<STR_LIT>'):<EOL><INDENT>delattr(my_task, '<STR_LIT>')<EOL><DEDENT>if hasattr(my_task, '<STR_LIT>'):<EOL><INDENT>delattr(my_task, '<STR_LIT>')<EOL><DEDENT>
Clear celery task data