mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(exdecutor) Prevent TriggerAdjacencyCalculationActor from showing up in the actions tab when it isn't running
This commit is contained in:
parent
97fcbdd6d9
commit
abbadc92a0
@ -20,12 +20,12 @@ public class TriggerAdjacencyCalculationActor extends RecordActorPrototype {
|
|||||||
private final ProcessService processService;
|
private final ProcessService processService;
|
||||||
private final ExecutorService executor = Executors.newSingleThreadExecutor();
|
private final ExecutorService executor = Executors.newSingleThreadExecutor();
|
||||||
|
|
||||||
public record Initial() implements ActorStep {}
|
public record Run() implements ActorStep {}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActorStep transition(ActorStep self) throws Exception {
|
public ActorStep transition(ActorStep self) throws Exception {
|
||||||
return switch (self) {
|
return switch (self) {
|
||||||
case Initial() -> {
|
case Run() -> {
|
||||||
AtomicBoolean hasError = new AtomicBoolean(false);
|
AtomicBoolean hasError = new AtomicBoolean(false);
|
||||||
var future = executor.submit(() -> {
|
var future = executor.submit(() -> {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user