function isValidState(state, queue) {
  const validStates = getStates(queue);
  return _.includes(validStates, state);
}
Determines if the requested job state lookup is valid.

@param {String} state
@param {Object} queue Queue that contains which queue package is used (bee, bull or bullmq)

@return {Boolean}