mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 07:32:38 +02:00
Compare commits
4 Commits
deploy-020
...
deploy-020
Author | SHA1 | Date | |
---|---|---|---|
|
32780967d8 | ||
|
7330bc489d | ||
|
ea23f33738 | ||
|
4a8a028118 |
@@ -35,15 +35,22 @@ public class DomSampleService {
|
|||||||
|
|
||||||
if (StringUtils.isEmpty(browserlessAddress) || serviceConfiguration.node() > 1) {
|
if (StringUtils.isEmpty(browserlessAddress) || serviceConfiguration.node() > 1) {
|
||||||
logger.warn("Live capture service will not run");
|
logger.warn("Live capture service will not run");
|
||||||
browserlessURI = null; // satisfy final
|
browserlessURI = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
browserlessURI = new URI(browserlessAddress);
|
browserlessURI = new URI(browserlessAddress);
|
||||||
|
|
||||||
Thread.ofPlatform().daemon().start(this::run);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void start() {
|
||||||
|
if (browserlessURI == null) {
|
||||||
|
logger.warn("DomSampleService is not enabled due to missing browserless URI or multi-node configuration");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Thread.ofPlatform().daemon().start(this::run);
|
||||||
|
}
|
||||||
|
|
||||||
public void syncDomains() {
|
public void syncDomains() {
|
||||||
Set<String> dbDomains = new HashSet<>();
|
Set<String> dbDomains = new HashSet<>();
|
||||||
|
|
||||||
|
@@ -5,6 +5,7 @@ import com.google.inject.Inject;
|
|||||||
import io.jooby.Context;
|
import io.jooby.Context;
|
||||||
import io.jooby.Jooby;
|
import io.jooby.Jooby;
|
||||||
import nu.marginalia.assistant.suggest.Suggestions;
|
import nu.marginalia.assistant.suggest.Suggestions;
|
||||||
|
import nu.marginalia.domsample.DomSampleService;
|
||||||
import nu.marginalia.functions.domains.DomainInfoGrpcService;
|
import nu.marginalia.functions.domains.DomainInfoGrpcService;
|
||||||
import nu.marginalia.functions.math.MathGrpcService;
|
import nu.marginalia.functions.math.MathGrpcService;
|
||||||
import nu.marginalia.livecapture.LiveCaptureGrpcService;
|
import nu.marginalia.livecapture.LiveCaptureGrpcService;
|
||||||
@@ -30,6 +31,7 @@ public class AssistantService extends JoobyService {
|
|||||||
ScreenshotService screenshotService,
|
ScreenshotService screenshotService,
|
||||||
DomainInfoGrpcService domainInfoGrpcService,
|
DomainInfoGrpcService domainInfoGrpcService,
|
||||||
LiveCaptureGrpcService liveCaptureGrpcService,
|
LiveCaptureGrpcService liveCaptureGrpcService,
|
||||||
|
DomSampleService domSampleService,
|
||||||
FeedsGrpcService feedsGrpcService,
|
FeedsGrpcService feedsGrpcService,
|
||||||
MathGrpcService mathGrpcService,
|
MathGrpcService mathGrpcService,
|
||||||
Suggestions suggestions)
|
Suggestions suggestions)
|
||||||
@@ -41,10 +43,11 @@ public class AssistantService extends JoobyService {
|
|||||||
liveCaptureGrpcService,
|
liveCaptureGrpcService,
|
||||||
feedsGrpcService),
|
feedsGrpcService),
|
||||||
List.of());
|
List.of());
|
||||||
this.screenshotService = screenshotService;
|
|
||||||
|
|
||||||
|
this.screenshotService = screenshotService;
|
||||||
this.suggestions = suggestions;
|
this.suggestions = suggestions;
|
||||||
|
|
||||||
|
domSampleService.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void startJooby(Jooby jooby) {
|
public void startJooby(Jooby jooby) {
|
||||||
|
@@ -9,3 +9,4 @@
|
|||||||
2025-05-05: Deploy control.
|
2025-05-05: Deploy control.
|
||||||
2025-05-08: Deploy assistant.
|
2025-05-08: Deploy assistant.
|
||||||
2025-05-17: Redeploy all.
|
2025-05-17: Redeploy all.
|
||||||
|
2025-05-28: Deploy assistant and browserless.
|
Reference in New Issue
Block a user