mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-03-26 19:03:08 +00:00
Gate WASM cron hooks behind plugin_allow_background_jobs
This commit is contained in:
parent
7273532b30
commit
dc6647efbf
1 changed files with 3 additions and 1 deletions
|
|
@ -334,7 +334,9 @@ async fn run() -> Result<(), StartupError> {
|
||||||
|
|
||||||
// WASM plugins need per-community context.
|
// WASM plugins need per-community context.
|
||||||
let community_ids: Vec<Uuid> =
|
let community_ids: Vec<Uuid> =
|
||||||
match sqlx::query_scalar("SELECT id FROM communities WHERE is_active = true")
|
match sqlx::query_scalar(
|
||||||
|
"SELECT id FROM communities WHERE is_active = true AND settings->>'plugin_allow_background_jobs' = 'true'",
|
||||||
|
)
|
||||||
.fetch_all(&cron_pool)
|
.fetch_all(&cron_pool)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue