bumpy-match-83743
07/17/2024, 1:43 PMFlyteAdminClient into a Scala project, but it doesn't seem to live in the import org.flyte.jflyte.FlyteAdminClient as per the examples. I'm likely missing a dependency somewhere?bumpy-match-83743
07/17/2024, 1:43 PMbumpy-match-83743
07/17/2024, 1:54 PMbumpy-match-83743
07/17/2024, 2:00 PMask-ai machinery, but they don't seem current.bumpy-match-83743
07/17/2024, 2:06 PMalert-oil-1341
07/17/2024, 2:09 PMalert-oil-1341
07/17/2024, 2:09 PMimport org.flyte.jflyte.utils.FlyteAdminClient;bumpy-match-83743
07/17/2024, 2:10 PMbumpy-match-83743
07/17/2024, 2:11 PMpublic static FlyteAdminClient create(String target, boolean insecure, @Nullable TokenSource tokenSource)bumpy-match-83743
07/17/2024, 2:35 PMjflyte, there seems to be no way (at least no documented way) to actually engage with them, e.g. execute a workflow, get a workflow status, get a workflow result, etc.
Again, the first page the the documentation naively suggests the Java/Scala support is first-class. If I'm honest, that's nowhere near true... unless I'm completely missing something here. Maybe I should figure out how to generate the code from the IDL/protobufs and abandon this library altogether. I'm also happy to contribute to the docs if that's all that's missing. Happy to take some advice here as I'm sure others have gone through this and might be able to point me in the right direction.alert-oil-1341
07/17/2024, 2:37 PMalert-oil-1341
07/17/2024, 2:38 PMalert-oil-1341
07/17/2024, 2:40 PMbumpy-match-83743
07/17/2024, 2:40 PMso you've got the workflow registered and just need to execute it now?Yes, I was able to get them registered.
bumpy-match-83743
07/17/2024, 2:41 PMcreate and idempotentCreatealert-oil-1341
07/17/2024, 2:49 PMcreate is to create your instance of the client and then actually you want to call creaetExecution(...) and point to your default launch plan for the workflow you createdalert-oil-1341
07/17/2024, 2:49 PMbumpy-match-83743
07/17/2024, 2:50 PMcreate function.alert-oil-1341
07/17/2024, 2:53 PMcreate("dns:///flyteadmin.default.svc.cluster.local:8089", false, null) is my guessalert-oil-1341
07/17/2024, 2:53 PMbumpy-match-83743
07/17/2024, 3:00 PMflytectl demo startbumpy-match-83743
07/17/2024, 3:01 PMadmin:
# For GRPC endpoints you might want to use dns:///flyte.myexample.com
endpoint: localhost:30080
insecure: true
# This is not a needed configuration, only useful if you want to explore the data in sandbox. For non sandbox, please
# do not use this configuration, instead prefer to use aws, gcs, azure sessions. Flytekit, should use fsspec to
# auto select the right backend to pull data as long as the sessions are configured. For Sandbox, this is special, as
# minio is s3 compatible and we ship with minio in sandbox.
storage:
connection:
endpoint: <http://localhost:30002>
access-key: minio
secret-key: miniostoragebumpy-match-83743
07/17/2024, 3:16 PMcreateExecution doesn't return an execution idbumpy-match-83743
07/17/2024, 3:17 PMbumpy-match-83743
07/17/2024, 7:26 PMbumpy-match-83743
07/17/2024, 7:46 PMalert-oil-1341
07/17/2024, 7:54 PMpublic CompletableFuture<ExecutionCreateResponse> createExecution(
final String domain,
final String project,
final String name,
final String version,
final LiteralMap input) {
return toCompletableFuture(
stub.createExecution(
ExecutionCreateRequest.newBuilder()
.setDomain(domain)
.setProject(project)
.setInputs(input)
.setSpec(
ExecutionSpec.newBuilder()
.setLaunchPlan(
Identifier.newBuilder()
.setResourceType(ResourceType.LAUNCH_PLAN)
.setDomain(domain)
.setProject(project)
.setName(name)
.setVersion(version)
.build())
.build())
.build()))
.exceptionally(handleFlyteExceptions());
}bumpy-match-83743
07/17/2024, 8:01 PMstub in this case?alert-oil-1341
07/17/2024, 8:07 PMalert-oil-1341
07/17/2024, 8:07 PMprivate AdminServiceGrpc.AdminServiceFutureStub stub;bumpy-match-83743
07/17/2024, 8:49 PMbumpy-match-83743
07/17/2024, 10:16 PMhigh-accountant-32689
07/23/2024, 2:42 PM