mirror of
https://github.com/apache/nifi.git
synced 2025-02-07 10:38:33 +00:00
NIFI-9824 - Address WARN log message in ProcessorAuditor on action RunOnce
This closes #5890 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
b53fb87aa1
commit
cd0b289146
@ -39,7 +39,8 @@ public enum Operation {
|
|||||||
StopVersionControl("Stop Version Control"),
|
StopVersionControl("Stop Version Control"),
|
||||||
CommitLocalChanges("Commit Local Changes"),
|
CommitLocalChanges("Commit Local Changes"),
|
||||||
RevertLocalChanges("Revert Local Changes"),
|
RevertLocalChanges("Revert Local Changes"),
|
||||||
ChangeVersion("Change Version");
|
ChangeVersion("Change Version"),
|
||||||
|
RunOnce("RunOnce");
|
||||||
|
|
||||||
private final String label;
|
private final String label;
|
||||||
|
|
||||||
|
@ -263,6 +263,8 @@ public class ProcessorAuditor extends NiFiAuditor {
|
|||||||
processorAction.setOperation(Operation.Stop);
|
processorAction.setOperation(Operation.Stop);
|
||||||
} else if (ScheduledState.DISABLED.equals(scheduledState)) {
|
} else if (ScheduledState.DISABLED.equals(scheduledState)) {
|
||||||
processorAction.setOperation(Operation.Enable);
|
processorAction.setOperation(Operation.Enable);
|
||||||
|
} else if (ScheduledState.STOPPED.equals(scheduledState)) {
|
||||||
|
processorAction.setOperation(Operation.RunOnce);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
actions.add(processorAction);
|
actions.add(processorAction);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user