Skip to content

Is it possible to change the interval in which apalis checks for new jobs #173

Answered by geofmureithi
IgnisDa asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to set this using fetch_interval:

.with_storage_config(pg.clone(), |cfg| {
cfg
// Set the buffer size to 100 ( Pick 100 jobs per query)
.buffer_size(250)
// Lower the fetch interval because postgres is waiting for notifications
.fetch_interval(Duration::from_millis(200))
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IgnisDa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #172 on September 25, 2023 05:38.