NetSuite FastTrack Toolkit (NFT) - v8.0.1
    Preparing search index...

    Function autoReschedule

    • Automatically reschedule the current task if governance is exhausted. Convenience function that composes governanceRemains and rescheduleIfNeeded

      Parameters

      • OptionalstartTime: number

        when (as a Date timestamp) to start counting elapsed time for clock-time governance, defaults to Date.now()

      • Optionalminutes: number

        threshold for maximum number of minutes allowed to elapse before rescheduling

      • Optionalunits: number

        threshold for minimum remaining governance units before rescheduling

      Returns () => boolean

      // defaults to 200 units threshold and starts elapsed time tracking at this invocation
      sequence.takeWhile(autoReschedule())