chore: adjust timing
This commit is contained in:
parent
dae57540e3
commit
2de06ec4d9
4
feed.go
4
feed.go
@ -126,7 +126,7 @@ var (
|
|||||||
where datetime(
|
where datetime(
|
||||||
coalesce(last_scan_on, '1901-01-01'),
|
coalesce(last_scan_on, '1901-01-01'),
|
||||||
'+'||refresh_rate||' seconds'
|
'+'||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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ func feedRefreshProcessor(c *console, app *appState) error {
|
|||||||
|
|
||||||
f := queue.ExtractMin()
|
f := queue.ExtractMin()
|
||||||
if f == nil {
|
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))))
|
span.AddEvent("sleeping for ", trace.WithAttributes(attribute.Int("seconds", int(TenMinutes))))
|
||||||
select {
|
select {
|
||||||
case <-time.After(TenMinutes * time.Second):
|
case <-time.After(TenMinutes * time.Second):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user