Resolving bug #24116

This commit is contained in:
Luca Frosini 2024-05-07 11:45:33 +02:00
parent 840bd00275
commit 5bad218e6e
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public class RunnablePlugin<T extends Plugin> implements Runnable {
@Override
public void run(){
public synchronized void run(){
String pluginName = plugin.getName();
logger.info("{} : {} is going to be launched (UUID={}, iterationNumber={}) with the following inputs {}",
@ -85,10 +85,10 @@ public class RunnablePlugin<T extends Plugin> implements Runnable {
JobUsageRecord jobUsageRecord = new JobUsageRecord();
long startTime = actualStateEvolution.getTimestamp();
Secret secret = SecretUtility.getSecretByTokenString(token);
SecretManager secretManager = SecretManagerProvider.instance.get();
try {
Secret secret = SecretUtility.getSecretByTokenString(token);
secretManager.startSession(secret);
setState(PluginState.RUNNING);