sk0x50 commented on code in PR #6541:
URL: https://github.com/apache/ignite-3/pull/6541#discussion_r2321541084


##########
docs/_docs/developers-guide/compute/compute.adoc:
##########
@@ -451,11 +446,11 @@ The below example executes the same job on all nodes in 
the cluster that have pa
 tab:Java[]
 [source, java]
 ----
-String executionResult = 
client.compute().execute(BroadcastJobTarget.table("Person"),
-JobDescriptor.builder(NodeNameJob.class).build(), null
-);
+JobDescriptor<String, Void> job = JobDescriptor.builder(HelloMessageJob.class)
+                    .units(new DeploymentUnit(DEPLOYMENT_UNIT_NAME, 
DEPLOYMENT_UNIT_VERSION))
+                    .build();
 
-System.out.println(executionResult);
+BroadcastJobTarget target = BroadcastJobTarget.nodes(client.cluster().nodes());

Review Comment:
   Perhaps, it should be 
   ```
   BroadcastJobTarget target = BroadcastJobTarget.table("Person");
   client.compute().execute(target, job, null);
   ```



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to