Skip to content

Commit

Permalink
Make the workflow transitions synchronized....
Browse files Browse the repository at this point in the history
I don't think this is strictly necessary but it may explain some of the
issues that Jud is seeing.
  • Loading branch information
slacmshankar committed Nov 21, 2017
1 parent ca4dc63 commit 98ab374
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.epics.archiverappliance.mgmt.policy.PolicyConfig.SamplingMethod;
import org.epics.archiverappliance.utils.ui.GetUrlContent;
import org.epics.archiverappliance.utils.ui.JSONEncoder;
import org.python.modules.synchronize;

/**
* State for the archive PV workflow
Expand All @@ -48,7 +49,7 @@ public ArchivePVState(String pvName, ConfigService configService) {
this.myIdentity = this.configService.getMyApplianceInfo().getIdentity();
}

public void nextStep() {
public synchronized void nextStep() {
try {
logger.debug("Archive workflow for pv " + pvName + " in state " + currentState);
switch(currentState) {
Expand Down

0 comments on commit 98ab374

Please sign in to comment.