parameters: (self, user_id, comment=None)
docstring: Removes a current lock from a task, resets to last status and
          updates history with duration of lock
docstring_summary: Removes a current lock from a task, resets to last status and
          updates history with duration of lock
docstring_tokens: Removes a current lock from a task resets to last status and updates history with duration of lock
function: def reset_lock(self, user_id, comment=None):
          """Removes a current lock from a task, resets to last status and
          updates history with duration of lock"""
          if comment:
              self.set_task_history(
                  action=TaskAction.COMMENT, comment=comment, user_id=user_id
              )
  
          # Using a slightly evil side effect of Actions and Statuses having the same name here :)
          TaskHistory.update_task_locked_with_duration(
              self.id, self.project_id, TaskStatus(self.task_status), user_id
          )
          self.clear_lock()
function_tokens: def reset_lock ( self , user_id , comment = None ) : if comment : self . set_task_history ( action = TaskAction . COMMENT , comment = comment , user_id = user_id ) # Using a slightly evil side effect of Actions and Statuses having the same name here :) TaskHistory . update_task_locked_with_duration ( self . id , self . project_id , TaskStatus ( self . task_status ) , user_id ) self . clear_lock ( )