github::ActivityMonitor method backfill_repo_history (public)

 <instance of github::ActivityMonitor[i]> backfill_repo_history args \
    [ args... ]

Defined in packages/xowiki/tcl/github-activity-monitor-procs.tcl

Parameters:
args (required)

Testcases:
No testcase defined.
Source code:
::xo::dc transaction {
    set locked [::xo::dc get_value github_backfill_lock {
        select case when pg_try_advisory_xact_lock(714230, 1)
                    then 1 else 0 end
    }]
    if {!$locked} {
        error "GitHub activity writer already running; retry later"
    }
    # Catch inside the transaction so a cooldown learned from an
    # HTTP failure commits even when this explicit call fails.
    set code [catch {
        :check_rate_limit
        :backfill_locked {*}$args
    } result options]
}
if {$code} {return -options $options $result}
return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: