fixed puvlisher APIs
This commit is contained in:
parent
17524f42bb
commit
373a25afa5
|
@ -160,7 +160,7 @@ public abstract class GCoreResourceMapper<GR extends org.gcube.common.resources.
|
|||
} catch (AvailableInAnotherContextException e) {
|
||||
// This code should never be reached because this should be fixed in
|
||||
// map function
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(r);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(r, false);
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (Exception ee) {
|
||||
|
|
|
@ -51,7 +51,7 @@ public class GenericResourceExporter extends GCoreResourceMapper<GenericResource
|
|||
} catch(NotFoundException e) {
|
||||
readFromIS = false;
|
||||
} catch(AvailableInAnotherContextException e) {
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(Configuration.NAME, uuid, false);
|
||||
Thread.sleep(100);
|
||||
readFromIS = true;
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class ServiceEndpointExporter extends GCoreResourceMapper<ServiceEndpoint
|
|||
} catch(NotFoundException e) {
|
||||
readFromIS = false;
|
||||
} catch(AvailableInAnotherContextException e) {
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid);
|
||||
resourceRegistryPublisher.addResourceToCurrentContext(EService.NAME, uuid, false);
|
||||
Thread.sleep(100);
|
||||
readFromIS = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue