github::ActivityMonitor method discover (protected)
<instance of github::ActivityMonitor> discover jobsVar heads
Defined in packages/xowiki/tcl/github-activity-monitor-procs.tcl
- Parameters:
- jobsVar (required)
- heads (required)
- Testcases:
- No testcase defined.
Source code: upvar 1 $jobsVar jobs set allowance [expr {min(${:discovery_requests_per_run}, max(2, ${:max_requests_per_run} / 4))}] set stop [expr {${:requests_left} - $allowance}] set :discovery_deadline [expr {[clock seconds] + max(1, ${:max_seconds_per_run} / 2)}] try { # Always prioritize new pushes, independent of the full cursor. :discover_recent jobs $stop if {[:discovery_available $stop]} {:discover_full jobs $heads $stop} } finally { unset :discovery_deadline }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)