fix: oops must wake in routes, not worker
This commit is contained in:
parent
133b33f8be
commit
9a260a14c3
2 changed files with 2 additions and 2 deletions
|
@ -72,6 +72,8 @@ pub async fn post(
|
||||||
|
|
||||||
model::job::Entity::insert(job).exec(ctx.db()).await?;
|
model::job::Entity::insert(job).exec(ctx.db()).await?;
|
||||||
|
|
||||||
|
ctx.wake_workers();
|
||||||
|
|
||||||
Ok(CreationResult(aid))
|
Ok(CreationResult(aid))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,7 +148,5 @@ pub async fn process(ctx: Context, job: &model::job::Model) -> crate::JobResult<
|
||||||
|
|
||||||
tx.commit().await?;
|
tx.commit().await?;
|
||||||
|
|
||||||
ctx.wake_workers();
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue