parameters: (self, task, sid)
docstring: Will create the task if one does not exist by that name. Once created, it is added to the global pool.
          :param task:
          :return:
docstring_summary: Will create the task if one does not exist by that name. Once created, it is added to the global pool.
          :param task:
          :return:
docstring_tokens: Will create the task if one does not exist by that name . Once created it is added to the global pool . : param task : : return :
function: def create_task(self, task, sid):
          """
          Will create the task if one does not exist by that name. Once created, it is added to the global pool.
          :param task:
          :return:
          """
          if self.get_task_by_room_name(room_name=task.room_name) is None:
              task.add_session(sid)
              self.socketio.start_background_task(target=task.run)
              self.add(task)
          else: # task already exists
              task.add_session(sid)
function_tokens: def create_task ( self , task , sid ) : if self . get_task_by_room_name ( room_name = task . room_name ) is None : task . add_session ( sid ) self . socketio . start_background_task ( target = task . run ) self . add ( task ) else : # task already exists task . add_session ( sid )