async function dequeueActivity(activity, message = false) {
  try {
    const success = await updateActivityStatus(
      activity,
      'dequeued',
      message !== false ? message : false,
    );
    return !!success;
  } catch (err) {
    return false;
  }
}
/**
 * Keep an activity in the DB but stop ingestion attempts
 *
 * @param {QueueActivity|Integer} activity QueueActivity document or ID
 * @param {String} message Detail or error info
 * @returns {Bool} Success or failure
 */
Keep an activity in the DB but stop ingestion attempts
@param {QueueActivity|Integer} activity QueueActivity document or ID
@param {String} message Detail or error info
@returns {Bool} Success or failure
Keep an activity in the DB but stop ingestion attempts @param { QueueActivity|Integer } activity QueueActivity document or ID @param { String } message Detail or error info @returns { Bool } Success or failure
async function dequeueActivity(activity, message = false) {
  try {
    const success = await updateActivityStatus(
      activity,
      'dequeued',
      message !== false ? message : false,
    );
    return !!success;
  } catch (err) {
    return false;
  }
}
async function dequeueActivity ( activity , message = false ) { try { const success = await updateActivityStatus ( activity , 'dequeued' , message !== false ? message : false , ) ; return ! ! success ; } catch ( err ) { return false ; } }
Keep an activity in the DB but stop ingestion attempts
 @param {QueueActivity|Integer} activity QueueActivity document or ID
 @param {String} message Detail or error info
 @returns {Bool} Success or failure
Keep an activity in the DB but stop ingestion attempts @param { QueueActivity|Integer } activity QueueActivity document or ID @param { String } message Detail or error info @returns { Bool } Success or failure