fix: oops must wake in routes, not worker

This commit is contained in:
əlemi 2024-09-19 17:16:33 +02:00
parent 133b33f8be
commit 9a260a14c3
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 2 deletions

View file

@ -72,6 +72,8 @@ pub async fn post(
model::job::Entity::insert(job).exec(ctx.db()).await?;
ctx.wake_workers();
Ok(CreationResult(aid))
}
}

View file

@ -148,7 +148,5 @@ pub async fn process(ctx: Context, job: &model::job::Model) -> crate::JobResult<
tx.commit().await?;
ctx.wake_workers();
Ok(())
}