'use strict';

function shouldDeferStartupTaskRestore(task, restoredOrdinal, fastSessionCount) {
  if (task?.type === 'walle') return false;
  const ordinal = Number(restoredOrdinal) || 0;
  const fastCount = Number(fastSessionCount) || 0;
  if (ordinal <= fastCount) return false;
  return true;
}

module.exports = {
  shouldDeferStartupTaskRestore,
};
