getTaskById(id) {
    for (let i = 0; i < this.queue.length; i++) {
      const taskObj = this.queue[i];
      if (id === taskObj.id) return taskObj;
    }

    for (let key in this.storeData) {
      const cloneTaskObj = this.storeData[key];
      if (id === cloneTaskObj.id) return cloneTaskObj;
    }

    return null;
  }
Get the task from queue
@public