mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-12 05:27:07 +00:00
Only spawn the extensions reconciliation task in the collab service (#8301)
This PR makes it so the background task that reconciles the extensions database with the blob store only runs on the `collab` service. This avoids us having multiple of these jobs running at once. Release Notes: - N/A
This commit is contained in:
parent
7c514d044f
commit
d3a38c69cd
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ async fn main() -> Result<()> {
|
||||||
None
|
None
|
||||||
};
|
};
|
||||||
|
|
||||||
fetch_extensions_from_blob_store_periodically(state.clone(), Executor::Production);
|
// TODO: Once we move the extensions endpoints to run inside `api` service, move the background task as well.
|
||||||
|
if !is_api_only {
|
||||||
|
fetch_extensions_from_blob_store_periodically(state.clone(), Executor::Production);
|
||||||
|
}
|
||||||
|
|
||||||
let mut app = collab::api::routes(rpc_server.clone(), state.clone());
|
let mut app = collab::api::routes(rpc_server.clone(), state.clone());
|
||||||
if let Some(rpc_server) = rpc_server.clone() {
|
if let Some(rpc_server) = rpc_server.clone() {
|
||||||
|
|
Loading…
Reference in a new issue