[rt-users] SLA Plugin - Maximum amount of hours?

Thomas Sibley trs at bestpractical.com
Mon Sep 26 10:11:45 EDT 2011


On 09/26/2011 06:09 AM, Bart wrote:
> I'm kinda stubbed since 480 comes down to 27000 minutes, I don't know if
> that's too much and if so what the maximum amount could be (16000
> something?), if there's a maximum then we'd want to use that instead.
> 
> In case your wondering, 480 is about 3 months. We want to use that
> setting for e.g. problems or long running changes.
> 
> So, does anyone know if there's a limit to the height of the SLA
> plugin's resolve time in BusinessMinutes?

>From the add_seconds method in Business::Hours:

    # the maximum time after which we stop searching for business hours
    my $MAXTIME = ( 30 * 24 * 60 * 60 );    # 30 days

and later:

        if ( $end >= $start + $MAXTIME ) {
            return -1;
        }

I believe this arbitrary limit is to prevent endless loops with
pathological configurations and bound the search time.  It's come up
before on this mailing list, and I know some folks have simply patched
the module to use a higher $MAXTIME.

Thomas



More information about the rt-users mailing list