nsmcp::UnifiedAccessAnalytics method retentionTick (public)

 <instance of nsmcp::UnifiedAccessAnalytics[i]> retentionTick

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-unified.tcl

Run and reschedule one retention-maintenance callback. Use a one-shot scheduling chain so maintenance retries do not phase-lock with the ingestion timer.

Returns:
The scheduler callback result.

Testcases:
No testcase defined.
Source code:
# A single threaded one-shot chain avoids phase-locking a periodic
# maintenance timer to the ingestion timer. Busy work retries later.
set delay ${:retentionInterval}
try {
    set result [:retain]
    if {[dict exists $result busy]} {
        set delay 1
    }
    return $result
} finally {
    catch {
        ns_schedule_proc -once -thread $delay [self] retentionTick
    }
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: