nsmcp::accessIngestionBegin (private)

 nsmcp::accessIngestionBegin

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Create a process-local status record for a new ingestion run. @return Run token used by progress and finish calls.

Partial Call Graph (max 5 caller/called nodes):
nsmcp::UnifiedAccessAnalytics instproc refresh nsmcp::UnifiedAccessAnalytics instproc refresh (public) nsmcp::accessIngestionBegin nsmcp::accessIngestionBegin nsmcp::UnifiedAccessAnalytics instproc refresh->nsmcp::accessIngestionBegin

Testcases:
No testcase defined.
Source code:
    set key nsmcp:access-writer:[ns_info server]
    set token [nsv_incr $key sequence]
    set last [expr {[nsv_exists $key state] ? [dict get [nsv_get $key state] lastRun] : {}}]
    set lastBatch {}
    if {[nsv_get $key state previous] && [dict exists $previous lastBatch]} {
        set lastBatch [dict get $previous lastBatch]
    }
    set now [clock clicks -milliseconds]
    nsv_set $key state [dict create token $token running true startedAt [clock seconds] startedTicks $now  phaseTicks $now phase starting parsedBytes 0 records 0 requestRecords 0 malformedRecords 0 oversizedRecords 0 committedBatches 0 sqlite {measuredBatches 0 unavailableBatches 0 commitMicroseconds 0 samplingMicroseconds 0 cacheHits 0 cacheMisses 0 cacheWrites 0 cacheSpills 0 tempBufferSpillBytes 0 commitCacheWrites 0} currentSQLite {} lastBatch $lastBatch phaseMilliseconds {} lastRun $last]
    return $token
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: