knowledge: ping every agent when internal/knowledge changes
This commit is contained in:
parent
94fb42f2b6
commit
78b90604a1
3 changed files with 77 additions and 10 deletions
|
|
@ -129,8 +129,9 @@ pub(super) async fn post_webhook_knowledge(
|
|||
return (StatusCode::OK, "ignored").into_response();
|
||||
}
|
||||
tracing::info!("webhook/knowledge: pull triggered by push to {expected_repo}");
|
||||
tokio::spawn(async {
|
||||
if let Err(e) = crate::knowledge::pull().await {
|
||||
let coord = state.coord.clone();
|
||||
tokio::spawn(async move {
|
||||
if let Err(e) = crate::knowledge::pull(&coord).await {
|
||||
tracing::warn!(error = ?e, "webhook/knowledge: pull failed");
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue