Revert "Move recorder lock inside of startRecordingProcess"
This reverts commit 78f7f7a841
.
This commit is contained in:
parent
24cad6e124
commit
1f50b74728
|
@ -296,11 +296,11 @@ public class NextGenLocalRecorder implements Recorder {
|
|||
|
||||
private CompletableFuture<Void> startRecordingProcess(Model model) {
|
||||
return CompletableFuture.runAsync(() -> {
|
||||
recorderLock.lock();
|
||||
try {
|
||||
preconditions.check(model);
|
||||
LOG.info("Starting recording for model {}", model.getName());
|
||||
Download download = createDownload(model);
|
||||
recorderLock.lock();
|
||||
Recording rec = createRecording(download);
|
||||
setRecordingStatus(rec, State.RECORDING);
|
||||
rec.getModel().setLastRecorded(rec.getStartDate());
|
||||
|
|
Loading…
Reference in New Issue