ashishm07 commented on code in PR #7122:
URL: https://github.com/apache/ignite-3/pull/7122#discussion_r2589005364


##########
examples/java/src/main/java/org/apache/ignite/example/compute/ComputeJobPriorityExample.java:
##########
@@ -122,13 +187,19 @@ public static void main(String[] args) {
             
//--------------------------------------------------------------------------------------
 
             CompletableFuture.allOf(jobFutures.toArray(new 
CompletableFuture[0])).join();
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        } finally {
+
+            System.out.println("Cleaning up resources");
+            undeployUnit(DEPLOYMENT_UNIT_NAME, DEPLOYMENT_UNIT_VERSION);
         }
     }
 
     /**
      * High-priority job.
      */
-    private static class HighPriorityJob implements ComputeJob<Integer, 
String> {
+    public static class HighPriorityJob implements ComputeJob<Integer, String> 
{

Review Comment:
   Made it public/static so Ignite can access and create the job class remotely 
without instantiation errors. 
   DeploymentUnit is not able to find these jobs unless we make it accessible 
remotely



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to