Add cron jobs to service

This commit is contained in:
dwrz
2026-06-02 12:04:02 +00:00
parent e5238e4081
commit 6fb63c8c90
84 changed files with 3022 additions and 2452 deletions

View File

@@ -16,10 +16,10 @@ type Scope struct {
id int32
}
var nextScopeId int32
var nextScopeId atomic.Int32
func newScope() Scope {
id := atomic.AddInt32(&nextScopeId, 1)
id := nextScopeId.Add(1)
return Scope{id: id}
}

View File

@@ -155,9 +155,9 @@ func propagate(graph *vtaGraph, canon *typeutil.Map) propTypeMap {
sccToTypes[sccID] = &typeSet
}
for i := len(sccs) - 1; i >= 0; i-- {
for i, scc := range slices.Backward(sccs) {
nextSccs := make(map[int]empty)
for _, n := range sccs[i] {
for _, n := range scc {
for succ := range graph.successors(n) {
nextSccs[idxToSccID[succ]] = empty{}
}