Skip to content

Commit

Permalink
Adapt TransactionAlgorithmMetaDataSetter for parallel runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
vnickolov committed Apr 22, 2024
1 parent 68382f3 commit 5b3a3d9
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ public <CONFIG extends BaseConfig> void set(CONFIG algoConfig) {
if (kernelTransaction == null) {
return;
}
var metaData = kernelTransaction.getMetaData();
if (metaData instanceof AlgorithmMetaData) {
((AlgorithmMetaData) metaData).set(algoConfig);

try {
var metaData = kernelTransaction.getMetaData();
if (metaData instanceof AlgorithmMetaData) {
((AlgorithmMetaData) metaData).set(algoConfig);
}
} catch (UnsupportedOperationException ignored) {
// Cypher Parallel Runtime does not support `kernelTransaction.getMetaData()` => we ignore it
}
}
}

0 comments on commit 5b3a3d9

Please sign in to comment.