mirror of
https://github.com/encounter/decomp.dev.git
synced 2026-07-10 03:18:48 -07:00
Reduce non-installation refresh time to 30m
This commit is contained in:
@@ -15,11 +15,11 @@ pub async fn create(
|
|||||||
) -> Result<Scheduler> {
|
) -> Result<Scheduler> {
|
||||||
let sched = JobScheduler::new().await?;
|
let sched = JobScheduler::new().await?;
|
||||||
|
|
||||||
// Every 10 minutes: Queue partial refresh jobs for projects without active installations
|
// Every 30 minutes: Queue partial refresh jobs for projects without active installations
|
||||||
{
|
{
|
||||||
let state = state.clone();
|
let state = state.clone();
|
||||||
sched
|
sched
|
||||||
.add(Job::new_async("every 10 minutes", move |_uuid, _l| {
|
.add(Job::new_async("every 30 minutes", move |_uuid, _l| {
|
||||||
let state = state.clone();
|
let state = state.clone();
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
if let Err(e) = queue_refresh_jobs(&state, false).await {
|
if let Err(e) = queue_refresh_jobs(&state, false).await {
|
||||||
|
|||||||
Reference in New Issue
Block a user