@flyteorg/flyteidl 1.5.9 → 1.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flyteorg/flyteidl",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Compiled protocol buffers and gRPC service clients/servers for Flyte IDLs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,69 @@
1
+ syntax = "proto3";
2
+
3
+ package flyteidl.admin;
4
+ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/admin";
5
+
6
+ import "flyteidl/core/literals.proto";
7
+ import "flyteidl/core/tasks.proto";
8
+ import "flyteidl/core/interface.proto";
9
+
10
+ // The state of the execution is used to control its visibility in the UI/CLI.
11
+ enum State {
12
+ RETRYABLE_FAILURE = 0;
13
+ PERMANENT_FAILURE = 1;
14
+ PENDING = 2;
15
+ RUNNING = 3;
16
+ SUCCEEDED = 4;
17
+ }
18
+
19
+ // Represents a request structure to create task.
20
+ message CreateTaskRequest {
21
+ // The inputs required to start the execution. All required inputs must be
22
+ // included in this map. If not required and not provided, defaults apply.
23
+ // +optional
24
+ core.LiteralMap inputs = 1;
25
+ // Template of the task that encapsulates all the metadata of the task.
26
+ core.TaskTemplate template = 2;
27
+ // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
28
+ string output_prefix = 3;
29
+ }
30
+
31
+ // Represents a create response structure.
32
+ message CreateTaskResponse {
33
+ // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
34
+ bytes resource_meta = 1;
35
+ }
36
+
37
+ // A message used to fetch a job resource from flyte agent server.
38
+ message GetTaskRequest {
39
+ // A predefined yet extensible Task type identifier.
40
+ string task_type = 1;
41
+ // Metadata about the resource to be pass to the agent.
42
+ bytes resource_meta = 2;
43
+ }
44
+
45
+ // Response to get an individual task resource.
46
+ message GetTaskResponse {
47
+ Resource resource = 1;
48
+ }
49
+
50
+ message Resource {
51
+ // The state of the execution is used to control its visibility in the UI/CLI.
52
+ State state = 1;
53
+ // The outputs of the execution. It's typically used by sql task. Agent service will create a
54
+ // Structured dataset pointing to the query result table.
55
+ // +optional
56
+ core.LiteralMap outputs = 2;
57
+ }
58
+
59
+ // A message used to delete a task.
60
+ message DeleteTaskRequest {
61
+ // A predefined yet extensible Task type identifier.
62
+ string task_type = 1;
63
+ // Metadata about the resource to be pass to the agent.
64
+ bytes resource_meta = 2;
65
+ }
66
+
67
+ // Response to delete a task.
68
+ message DeleteTaskResponse {
69
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package flyteidl.service;
3
+
4
+ option go_package = "github.com/flyteorg/flyteidl/gen/pb-go/flyteidl/service";
5
+ import "flyteidl/admin/agent.proto";
6
+
7
+ // AgentService defines an RPC Service that allows propeller to send the request to the agent server.
8
+ service AsyncAgentService {
9
+ // Send a task create request to the agent server.
10
+ rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){};
11
+ // Get job status.
12
+ rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){};
13
+ // Delete the task resource.
14
+ rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){};
15
+ }
@@ -6,18 +6,19 @@ import "flyteidl/core/literals.proto";
6
6
  import "flyteidl/core/tasks.proto";
7
7
  import "flyteidl/core/interface.proto";
8
8
 
9
- // AgentService defines an RPC Service that allows propeller to send the request to the agent server.
10
- service AgentService {
11
- // Send a task create request to the agent server.
12
- rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){};
9
+ // ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server.
10
+ service ExternalPluginService {
11
+ // Send a task create request to the backend plugin server.
12
+ rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){option deprecated = true;};
13
13
  // Get job status.
14
- rpc GetTask (TaskGetRequest) returns (TaskGetResponse){};
14
+ rpc GetTask (TaskGetRequest) returns (TaskGetResponse){option deprecated = true;};
15
15
  // Delete the task resource.
16
- rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){};
16
+ rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){option deprecated = true;};
17
17
  }
18
18
 
19
19
  // The state of the execution is used to control its visibility in the UI/CLI.
20
20
  enum State {
21
+ option deprecated = true;
21
22
  RETRYABLE_FAILURE = 0;
22
23
  PERMANENT_FAILURE = 1;
23
24
  PENDING = 2;
@@ -27,6 +28,7 @@ enum State {
27
28
 
28
29
  // Represents a request structure to create task.
29
30
  message TaskCreateRequest {
31
+ option deprecated = true;
30
32
  // The inputs required to start the execution. All required inputs must be
31
33
  // included in this map. If not required and not provided, defaults apply.
32
34
  // +optional
@@ -39,11 +41,13 @@ message TaskCreateRequest {
39
41
 
40
42
  // Represents a create response structure.
41
43
  message TaskCreateResponse {
44
+ option deprecated = true;
42
45
  string job_id = 1;
43
46
  }
44
47
 
45
- // A message used to fetch a job state from flyte agent server.
48
+ // A message used to fetch a job state from backend plugin server.
46
49
  message TaskGetRequest {
50
+ option deprecated = true;
47
51
  // A predefined yet extensible Task type identifier.
48
52
  string task_type = 1;
49
53
  // The unique id identifying the job.
@@ -52,9 +56,10 @@ message TaskGetRequest {
52
56
 
53
57
  // Response to get an individual task state.
54
58
  message TaskGetResponse {
59
+ option deprecated = true;
55
60
  // The state of the execution is used to control its visibility in the UI/CLI.
56
61
  State state = 1;
57
- // The outputs of the execution. It's typically used by sql task. Agent service will create a
62
+ // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
58
63
  // Structured dataset pointing to the query result table.
59
64
  // +optional
60
65
  core.LiteralMap outputs = 2;
@@ -62,6 +67,7 @@ message TaskGetResponse {
62
67
 
63
68
  // A message used to delete a task.
64
69
  message TaskDeleteRequest {
70
+ option deprecated = true;
65
71
  // A predefined yet extensible Task type identifier.
66
72
  string task_type = 1;
67
73
  // The unique id identifying the job.
@@ -70,5 +76,5 @@ message TaskDeleteRequest {
70
76
 
71
77
  // Response to delete a task.
72
78
  message TaskDeleteResponse {
79
+ option deprecated = true;
73
80
  }
74
-