chore: adjust timing

This commit is contained in:
xuu 2025-03-24 22:29:18 -06:00
parent dae57540e3
commit 2de06ec4d9
Signed by: xuu
GPG Key ID: 8B3B0604F164E04F
2 changed files with 14 additions and 16 deletions

View File

@ -126,7 +126,7 @@ var (
where datetime(
coalesce(last_scan_on, '1901-01-01'),
'+'||refresh_rate||' seconds'
) < datetime(current_timestamp, '+10 minutes')
) < datetime(current_timestamp, '+2 minutes')
`
)
@ -463,5 +463,3 @@ func chunk(args []any, qry func(int) (string, int), maxArgs int) iter.Seq2[strin
}
}
}

View File

@ -65,7 +65,7 @@ func feedRefreshProcessor(c *console, app *appState) error {
f := queue.ExtractMin()
if f == nil {
sleeping_time.Add(ctx, int64(TenMinutes))
sleeping_time.Add(ctx, int64(TwoMinutes))
span.AddEvent("sleeping for ", trace.WithAttributes(attribute.Int("seconds", int(TenMinutes))))
select {
case <-time.After(TenMinutes * time.Second):