Skip to main content

require_duration_in_range

Function require_duration_in_range 

Source
pub fn require_duration_in_range(seconds: u32) -> Result<u32, Error>
Expand description

Rejects a maximumDurationInSeconds outside the service range.

28800 is eight hours and the hard ceiling on any single VM’s life. A longer session needs a second VM, not a larger number — which is what the message says, because “outside the accepted range” alone invites someone to look for the flag that raises it.