apache-airflow-providers-edge3 1.1.3rc1__py3-none-any.whl → 1.2.0rc1__py3-none-any.whl
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.
- airflow/providers/edge3/__init__.py +1 -1
- airflow/providers/edge3/cli/worker.py +6 -2
- airflow/providers/edge3/example_dags/integration_test.py +6 -2
- airflow/providers/edge3/example_dags/win_test.py +6 -1
- airflow/providers/edge3/openapi/v2-edge-generated.yaml +1138 -0
- airflow/providers/edge3/plugins/edge_executor_plugin.py +43 -3
- airflow/providers/edge3/plugins/www/.gitignore +27 -0
- airflow/providers/edge3/plugins/www/.prettierignore +6 -0
- airflow/providers/edge3/plugins/www/.prettierrc +13 -0
- airflow/providers/edge3/plugins/www/README.md +141 -0
- airflow/providers/edge3/plugins/www/dist/main.d.ts +1 -0
- airflow/providers/edge3/plugins/www/dist/main.umd.cjs +124 -0
- airflow/providers/edge3/plugins/www/eslint.config.js +54 -0
- airflow/providers/edge3/plugins/www/index.html +13 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts +33 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/ensureQueryData.ts +16 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/index.ts +4 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/infiniteQueries.ts +2 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/prefetch.ts +16 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts +87 -0
- airflow/providers/edge3/plugins/www/openapi-gen/queries/suspense.ts +16 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/ApiError.ts +21 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/ApiRequestOptions.ts +21 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/ApiResult.ts +7 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/CancelablePromise.ts +126 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/OpenAPI.ts +57 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/core/request.ts +347 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/index.ts +7 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts +700 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts +289 -0
- airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts +655 -0
- airflow/providers/edge3/plugins/www/package.json +80 -0
- airflow/providers/edge3/plugins/www/pnpm-lock.yaml +6653 -0
- airflow/providers/edge3/plugins/www/src/components/ErrorAlert.tsx +66 -0
- airflow/providers/edge3/plugins/www/src/components/StateBadge.tsx +43 -0
- airflow/providers/edge3/plugins/www/src/components/StateIcon.tsx +58 -0
- airflow/providers/edge3/plugins/www/src/components/WorkerStateBadge.tsx +71 -0
- airflow/providers/edge3/plugins/www/src/components/WorkerStateIcon.tsx +57 -0
- airflow/providers/edge3/plugins/www/src/components/ui/Alert.tsx +62 -0
- airflow/providers/edge3/plugins/www/src/components/ui/CloseButton.tsx +32 -0
- airflow/providers/edge3/plugins/www/src/components/ui/index.ts +20 -0
- airflow/providers/edge3/plugins/www/src/context/colorMode/ColorModeProvider.tsx +24 -0
- airflow/providers/edge3/plugins/www/src/context/colorMode/index.ts +21 -0
- airflow/providers/edge3/plugins/www/src/context/colorMode/useColorMode.tsx +32 -0
- airflow/providers/edge3/plugins/www/src/dev.tsx +29 -0
- airflow/providers/edge3/plugins/www/src/layouts/EdgeLayout.tsx +44 -0
- airflow/providers/edge3/plugins/www/src/layouts/NavTabs.tsx +63 -0
- airflow/providers/edge3/plugins/www/src/main.tsx +58 -0
- airflow/providers/edge3/plugins/www/src/pages/JobsPage.tsx +88 -0
- airflow/providers/edge3/plugins/www/src/pages/WorkerPage.tsx +105 -0
- airflow/providers/edge3/plugins/www/src/res/README.md +24 -0
- airflow/providers/edge3/plugins/www/src/res/cloud-computer-dark.svg +3 -0
- airflow/providers/edge3/plugins/www/src/res/cloud-computer.svg +3 -0
- airflow/providers/edge3/plugins/www/src/theme.ts +176 -0
- airflow/providers/edge3/plugins/www/src/utils/config.ts +23 -0
- airflow/providers/edge3/plugins/www/src/utils/index.ts +22 -0
- airflow/providers/edge3/plugins/www/src/utils/tokenHandler.ts +51 -0
- airflow/providers/edge3/plugins/www/src/utils/useContainerWidth.ts +43 -0
- airflow/providers/edge3/plugins/www/src/vite-env.d.ts +20 -0
- airflow/providers/edge3/plugins/www/testsSetup.ts +19 -0
- airflow/providers/edge3/plugins/www/tsconfig.app.json +31 -0
- airflow/providers/edge3/plugins/www/tsconfig.json +8 -0
- airflow/providers/edge3/plugins/www/tsconfig.lib.json +15 -0
- airflow/providers/edge3/plugins/www/tsconfig.node.json +29 -0
- airflow/providers/edge3/plugins/www/vite.config.ts +95 -0
- airflow/providers/edge3/version_compat.py +1 -0
- airflow/providers/edge3/worker_api/app.py +34 -8
- airflow/providers/edge3/worker_api/datamodels_ui.py +67 -0
- airflow/providers/edge3/worker_api/routes/health.py +1 -1
- airflow/providers/edge3/worker_api/routes/ui.py +102 -0
- {apache_airflow_providers_edge3-1.1.3rc1.dist-info → apache_airflow_providers_edge3-1.2.0rc1.dist-info}/METADATA +7 -8
- apache_airflow_providers_edge3-1.2.0rc1.dist-info/RECORD +103 -0
- apache_airflow_providers_edge3-1.1.3rc1.dist-info/RECORD +0 -41
- {apache_airflow_providers_edge3-1.1.3rc1.dist-info → apache_airflow_providers_edge3-1.2.0rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_edge3-1.1.3rc1.dist-info → apache_airflow_providers_edge3-1.2.0rc1.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,655 @@
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Schema for telling task which bundle to run with.
|
5
|
+
*/
|
6
|
+
export type BundleInfo = {
|
7
|
+
name: string;
|
8
|
+
version?: string | null;
|
9
|
+
};
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Job that is to be executed on the edge worker.
|
13
|
+
*/
|
14
|
+
export type EdgeJobFetched = {
|
15
|
+
/**
|
16
|
+
* Identifier of the DAG to which the task belongs.
|
17
|
+
*/
|
18
|
+
dag_id: string;
|
19
|
+
/**
|
20
|
+
* Task name in the DAG.
|
21
|
+
*/
|
22
|
+
task_id: string;
|
23
|
+
/**
|
24
|
+
* Run ID of the DAG execution.
|
25
|
+
*/
|
26
|
+
run_id: string;
|
27
|
+
/**
|
28
|
+
* For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
|
29
|
+
*/
|
30
|
+
map_index: number;
|
31
|
+
/**
|
32
|
+
* The number of attempt to execute this task.
|
33
|
+
*/
|
34
|
+
try_number: number;
|
35
|
+
/**
|
36
|
+
* Command line to use to execute the job in Airflow 2. Task definition in Airflow 3
|
37
|
+
*/
|
38
|
+
command: ExecuteTask;
|
39
|
+
/**
|
40
|
+
* Number of concurrency slots the job requires.
|
41
|
+
*/
|
42
|
+
concurrency_slots: number;
|
43
|
+
};
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Status of a Edge Worker instance.
|
47
|
+
*/
|
48
|
+
export type EdgeWorkerState = 'starting' | 'running' | 'idle' | 'shutdown request' | 'terminating' | 'offline' | 'unknown' | 'maintenance request' | 'maintenance pending' | 'maintenance mode' | 'maintenance exit' | 'offline maintenance';
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Execute the given Task.
|
52
|
+
*/
|
53
|
+
export type ExecuteTask = {
|
54
|
+
token: string;
|
55
|
+
ti: TaskInstance;
|
56
|
+
dag_rel_path: string;
|
57
|
+
bundle_info: BundleInfo;
|
58
|
+
log_path: string | null;
|
59
|
+
type?: "ExecuteTask";
|
60
|
+
};
|
61
|
+
|
62
|
+
/**
|
63
|
+
* HTTPException Model used for error response.
|
64
|
+
*/
|
65
|
+
export type HTTPExceptionResponse = {
|
66
|
+
detail: string | {
|
67
|
+
[key: string]: unknown;
|
68
|
+
};
|
69
|
+
};
|
70
|
+
|
71
|
+
export type HTTPValidationError = {
|
72
|
+
detail?: Array<ValidationError>;
|
73
|
+
};
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Details of the job sent to the scheduler.
|
77
|
+
*/
|
78
|
+
export type Job = {
|
79
|
+
/**
|
80
|
+
* Identifier of the DAG to which the task belongs.
|
81
|
+
*/
|
82
|
+
dag_id: string;
|
83
|
+
/**
|
84
|
+
* Task name in the DAG.
|
85
|
+
*/
|
86
|
+
task_id: string;
|
87
|
+
/**
|
88
|
+
* Run ID of the DAG execution.
|
89
|
+
*/
|
90
|
+
run_id: string;
|
91
|
+
/**
|
92
|
+
* For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
|
93
|
+
*/
|
94
|
+
map_index: number;
|
95
|
+
/**
|
96
|
+
* The number of attempt to execute this task.
|
97
|
+
*/
|
98
|
+
try_number: number;
|
99
|
+
/**
|
100
|
+
* State of the job from the view of the executor.
|
101
|
+
*/
|
102
|
+
state: TaskInstanceState;
|
103
|
+
/**
|
104
|
+
* Queue for which the task is scheduled/running.
|
105
|
+
*/
|
106
|
+
queue: string;
|
107
|
+
/**
|
108
|
+
* When the job was queued.
|
109
|
+
*/
|
110
|
+
queued_dttm?: string | null;
|
111
|
+
/**
|
112
|
+
* The worker processing the job during execution.
|
113
|
+
*/
|
114
|
+
edge_worker?: string | null;
|
115
|
+
/**
|
116
|
+
* Last heartbeat of the job.
|
117
|
+
*/
|
118
|
+
last_update?: string | null;
|
119
|
+
};
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Job Collection serializer.
|
123
|
+
*/
|
124
|
+
export type JobCollectionResponse = {
|
125
|
+
jobs: Array<Job>;
|
126
|
+
total_entries: number;
|
127
|
+
};
|
128
|
+
|
129
|
+
/**
|
130
|
+
* Incremental new log content from worker.
|
131
|
+
*/
|
132
|
+
export type PushLogsBody = {
|
133
|
+
/**
|
134
|
+
* Time of the log chunk at point of sending.
|
135
|
+
*/
|
136
|
+
log_chunk_time: string;
|
137
|
+
/**
|
138
|
+
* Log chunk data as incremental log text.
|
139
|
+
*/
|
140
|
+
log_chunk_data: string;
|
141
|
+
};
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Schema for TaskInstance with minimal required fields needed for Executors and Task SDK.
|
145
|
+
*/
|
146
|
+
export type TaskInstance = {
|
147
|
+
id: string;
|
148
|
+
dag_version_id: string;
|
149
|
+
task_id: string;
|
150
|
+
dag_id: string;
|
151
|
+
run_id: string;
|
152
|
+
try_number: number;
|
153
|
+
map_index?: number;
|
154
|
+
pool_slots: number;
|
155
|
+
queue: string;
|
156
|
+
priority_weight: number;
|
157
|
+
parent_context_carrier?: {
|
158
|
+
[key: string]: unknown;
|
159
|
+
} | null;
|
160
|
+
context_carrier?: {
|
161
|
+
[key: string]: unknown;
|
162
|
+
} | null;
|
163
|
+
};
|
164
|
+
|
165
|
+
/**
|
166
|
+
* All possible states that a Task Instance can be in.
|
167
|
+
*
|
168
|
+
* Note that None is also allowed, so always use this in a type hint with Optional.
|
169
|
+
*/
|
170
|
+
export type TaskInstanceState = 'removed' | 'scheduled' | 'queued' | 'running' | 'success' | 'restarting' | 'failed' | 'up_for_retry' | 'up_for_reschedule' | 'upstream_failed' | 'skipped' | 'deferred';
|
171
|
+
|
172
|
+
export type ValidationError = {
|
173
|
+
loc: Array<(string | number)>;
|
174
|
+
msg: string;
|
175
|
+
type: string;
|
176
|
+
};
|
177
|
+
|
178
|
+
/**
|
179
|
+
* Details of the worker state sent to the scheduler.
|
180
|
+
*/
|
181
|
+
export type Worker = {
|
182
|
+
/**
|
183
|
+
* List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.
|
184
|
+
*/
|
185
|
+
queues?: Array<(string)> | null;
|
186
|
+
/**
|
187
|
+
* State of the worker from the view of the worker.
|
188
|
+
*/
|
189
|
+
state: EdgeWorkerState;
|
190
|
+
/**
|
191
|
+
* Number of active jobs the worker is running.
|
192
|
+
*/
|
193
|
+
jobs_active?: number;
|
194
|
+
/**
|
195
|
+
* System information of the worker.
|
196
|
+
*/
|
197
|
+
sysinfo: {
|
198
|
+
[key: string]: (string | number);
|
199
|
+
};
|
200
|
+
/**
|
201
|
+
* Comments about the maintenance state of the worker.
|
202
|
+
*/
|
203
|
+
maintenance_comments?: string | null;
|
204
|
+
/**
|
205
|
+
* Name of the worker.
|
206
|
+
*/
|
207
|
+
worker_name: string;
|
208
|
+
/**
|
209
|
+
* When the worker was first online.
|
210
|
+
*/
|
211
|
+
first_online?: string | null;
|
212
|
+
/**
|
213
|
+
* When the worker last sent a heartbeat.
|
214
|
+
*/
|
215
|
+
last_heartbeat?: string | null;
|
216
|
+
};
|
217
|
+
|
218
|
+
/**
|
219
|
+
* Worker Collection serializer.
|
220
|
+
*/
|
221
|
+
export type WorkerCollectionResponse = {
|
222
|
+
workers: Array<Worker>;
|
223
|
+
total_entries: number;
|
224
|
+
};
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Changed queues for the worker.
|
228
|
+
*/
|
229
|
+
export type WorkerQueueUpdateBody = {
|
230
|
+
/**
|
231
|
+
* Additional queues to be added to worker.
|
232
|
+
*/
|
233
|
+
new_queues: Array<(string)> | null;
|
234
|
+
/**
|
235
|
+
* Queues to remove from worker.
|
236
|
+
*/
|
237
|
+
remove_queues: Array<(string)> | null;
|
238
|
+
};
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Queues that a worker supports to run jobs on.
|
242
|
+
*/
|
243
|
+
export type WorkerQueuesBody = {
|
244
|
+
/**
|
245
|
+
* List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.
|
246
|
+
*/
|
247
|
+
queues?: Array<(string)> | null;
|
248
|
+
/**
|
249
|
+
* Number of free concurrency slots on the worker.
|
250
|
+
*/
|
251
|
+
free_concurrency: number;
|
252
|
+
};
|
253
|
+
|
254
|
+
/**
|
255
|
+
* The return class for the worker registration.
|
256
|
+
*/
|
257
|
+
export type WorkerRegistrationReturn = {
|
258
|
+
/**
|
259
|
+
* Time of the last update of the worker.
|
260
|
+
*/
|
261
|
+
last_update: string;
|
262
|
+
};
|
263
|
+
|
264
|
+
/**
|
265
|
+
* The return class for the worker set state.
|
266
|
+
*/
|
267
|
+
export type WorkerSetStateReturn = {
|
268
|
+
/**
|
269
|
+
* State of the worker from the view of the server.
|
270
|
+
*/
|
271
|
+
state: EdgeWorkerState;
|
272
|
+
/**
|
273
|
+
* List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.
|
274
|
+
*/
|
275
|
+
queues: Array<(string)> | null;
|
276
|
+
/**
|
277
|
+
* Comments about the maintenance state of the worker.
|
278
|
+
*/
|
279
|
+
maintenance_comments?: string | null;
|
280
|
+
};
|
281
|
+
|
282
|
+
/**
|
283
|
+
* Details of the worker state sent to the scheduler.
|
284
|
+
*/
|
285
|
+
export type WorkerStateBody = {
|
286
|
+
/**
|
287
|
+
* List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.
|
288
|
+
*/
|
289
|
+
queues?: Array<(string)> | null;
|
290
|
+
/**
|
291
|
+
* State of the worker from the view of the worker.
|
292
|
+
*/
|
293
|
+
state: EdgeWorkerState;
|
294
|
+
/**
|
295
|
+
* Number of active jobs the worker is running.
|
296
|
+
*/
|
297
|
+
jobs_active?: number;
|
298
|
+
/**
|
299
|
+
* System information of the worker.
|
300
|
+
*/
|
301
|
+
sysinfo: {
|
302
|
+
[key: string]: (string | number);
|
303
|
+
};
|
304
|
+
/**
|
305
|
+
* Comments about the maintenance state of the worker.
|
306
|
+
*/
|
307
|
+
maintenance_comments?: string | null;
|
308
|
+
};
|
309
|
+
|
310
|
+
export type FetchData = {
|
311
|
+
/**
|
312
|
+
* JWT Authorization Token
|
313
|
+
*/
|
314
|
+
authorization: string;
|
315
|
+
requestBody: WorkerQueuesBody;
|
316
|
+
workerName: string;
|
317
|
+
};
|
318
|
+
|
319
|
+
export type FetchResponse = EdgeJobFetched | null;
|
320
|
+
|
321
|
+
export type StateData = {
|
322
|
+
/**
|
323
|
+
* JWT Authorization Token
|
324
|
+
*/
|
325
|
+
authorization: string;
|
326
|
+
/**
|
327
|
+
* Identifier of the DAG to which the task belongs.
|
328
|
+
*/
|
329
|
+
dagId: string;
|
330
|
+
/**
|
331
|
+
* For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
|
332
|
+
*/
|
333
|
+
mapIndex: number;
|
334
|
+
/**
|
335
|
+
* Run ID of the DAG execution.
|
336
|
+
*/
|
337
|
+
runId: string;
|
338
|
+
/**
|
339
|
+
* State of the assigned task under execution.
|
340
|
+
*/
|
341
|
+
state: TaskInstanceState;
|
342
|
+
/**
|
343
|
+
* Task name in the DAG.
|
344
|
+
*/
|
345
|
+
taskId: string;
|
346
|
+
/**
|
347
|
+
* The number of attempt to execute this task.
|
348
|
+
*/
|
349
|
+
tryNumber: number;
|
350
|
+
};
|
351
|
+
|
352
|
+
export type StateResponse = null;
|
353
|
+
|
354
|
+
export type LogfilePathData = {
|
355
|
+
/**
|
356
|
+
* JWT Authorization Token
|
357
|
+
*/
|
358
|
+
authorization: string;
|
359
|
+
/**
|
360
|
+
* Identifier of the DAG to which the task belongs.
|
361
|
+
*/
|
362
|
+
dagId: string;
|
363
|
+
/**
|
364
|
+
* For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
|
365
|
+
*/
|
366
|
+
mapIndex: number;
|
367
|
+
/**
|
368
|
+
* Run ID of the DAG execution.
|
369
|
+
*/
|
370
|
+
runId: string;
|
371
|
+
/**
|
372
|
+
* Task name in the DAG.
|
373
|
+
*/
|
374
|
+
taskId: string;
|
375
|
+
/**
|
376
|
+
* The number of attempt to execute this task.
|
377
|
+
*/
|
378
|
+
tryNumber: number;
|
379
|
+
};
|
380
|
+
|
381
|
+
export type LogfilePathResponse = string;
|
382
|
+
|
383
|
+
export type PushLogsData = {
|
384
|
+
/**
|
385
|
+
* JWT Authorization Token
|
386
|
+
*/
|
387
|
+
authorization: string;
|
388
|
+
/**
|
389
|
+
* Identifier of the DAG to which the task belongs.
|
390
|
+
*/
|
391
|
+
dagId: string;
|
392
|
+
/**
|
393
|
+
* For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
|
394
|
+
*/
|
395
|
+
mapIndex: number;
|
396
|
+
requestBody: PushLogsBody;
|
397
|
+
/**
|
398
|
+
* Run ID of the DAG execution.
|
399
|
+
*/
|
400
|
+
runId: string;
|
401
|
+
/**
|
402
|
+
* Task name in the DAG.
|
403
|
+
*/
|
404
|
+
taskId: string;
|
405
|
+
/**
|
406
|
+
* The number of attempt to execute this task.
|
407
|
+
*/
|
408
|
+
tryNumber: number;
|
409
|
+
};
|
410
|
+
|
411
|
+
export type PushLogsResponse = null;
|
412
|
+
|
413
|
+
export type RegisterData = {
|
414
|
+
/**
|
415
|
+
* JWT Authorization Token
|
416
|
+
*/
|
417
|
+
authorization: string;
|
418
|
+
requestBody: WorkerStateBody;
|
419
|
+
/**
|
420
|
+
* Hostname or instance name of the worker
|
421
|
+
*/
|
422
|
+
workerName: string;
|
423
|
+
};
|
424
|
+
|
425
|
+
export type RegisterResponse = WorkerRegistrationReturn;
|
426
|
+
|
427
|
+
export type SetStateData = {
|
428
|
+
/**
|
429
|
+
* JWT Authorization Token
|
430
|
+
*/
|
431
|
+
authorization: string;
|
432
|
+
requestBody: WorkerStateBody;
|
433
|
+
/**
|
434
|
+
* Hostname or instance name of the worker
|
435
|
+
*/
|
436
|
+
workerName: string;
|
437
|
+
};
|
438
|
+
|
439
|
+
export type SetStateResponse = WorkerSetStateReturn;
|
440
|
+
|
441
|
+
export type UpdateQueuesData = {
|
442
|
+
/**
|
443
|
+
* JWT Authorization Token
|
444
|
+
*/
|
445
|
+
authorization: string;
|
446
|
+
requestBody: WorkerQueueUpdateBody;
|
447
|
+
/**
|
448
|
+
* Hostname or instance name of the worker
|
449
|
+
*/
|
450
|
+
workerName: string;
|
451
|
+
};
|
452
|
+
|
453
|
+
export type UpdateQueuesResponse = null;
|
454
|
+
|
455
|
+
export type HealthResponse = {
|
456
|
+
[key: string]: (string);
|
457
|
+
};
|
458
|
+
|
459
|
+
export type WorkerResponse = WorkerCollectionResponse;
|
460
|
+
|
461
|
+
export type JobsResponse = JobCollectionResponse;
|
462
|
+
|
463
|
+
export type $OpenApiTs = {
|
464
|
+
'/edge_worker/v1/jobs/fetch/{worker_name}': {
|
465
|
+
post: {
|
466
|
+
req: FetchData;
|
467
|
+
res: {
|
468
|
+
/**
|
469
|
+
* Successful Response
|
470
|
+
*/
|
471
|
+
200: EdgeJobFetched | null;
|
472
|
+
/**
|
473
|
+
* Bad Request
|
474
|
+
*/
|
475
|
+
400: HTTPExceptionResponse;
|
476
|
+
/**
|
477
|
+
* Forbidden
|
478
|
+
*/
|
479
|
+
403: HTTPExceptionResponse;
|
480
|
+
/**
|
481
|
+
* Validation Error
|
482
|
+
*/
|
483
|
+
422: HTTPValidationError;
|
484
|
+
};
|
485
|
+
};
|
486
|
+
};
|
487
|
+
'/edge_worker/v1/jobs/state/{dag_id}/{task_id}/{run_id}/{try_number}/{map_index}/{state}': {
|
488
|
+
patch: {
|
489
|
+
req: StateData;
|
490
|
+
res: {
|
491
|
+
/**
|
492
|
+
* Successful Response
|
493
|
+
*/
|
494
|
+
200: null;
|
495
|
+
/**
|
496
|
+
* Bad Request
|
497
|
+
*/
|
498
|
+
400: HTTPExceptionResponse;
|
499
|
+
/**
|
500
|
+
* Forbidden
|
501
|
+
*/
|
502
|
+
403: HTTPExceptionResponse;
|
503
|
+
/**
|
504
|
+
* Validation Error
|
505
|
+
*/
|
506
|
+
422: HTTPValidationError;
|
507
|
+
};
|
508
|
+
};
|
509
|
+
};
|
510
|
+
'/edge_worker/v1/logs/logfile_path/{dag_id}/{task_id}/{run_id}/{try_number}/{map_index}': {
|
511
|
+
get: {
|
512
|
+
req: LogfilePathData;
|
513
|
+
res: {
|
514
|
+
/**
|
515
|
+
* Successful Response
|
516
|
+
*/
|
517
|
+
200: string;
|
518
|
+
/**
|
519
|
+
* Bad Request
|
520
|
+
*/
|
521
|
+
400: HTTPExceptionResponse;
|
522
|
+
/**
|
523
|
+
* Forbidden
|
524
|
+
*/
|
525
|
+
403: HTTPExceptionResponse;
|
526
|
+
/**
|
527
|
+
* Validation Error
|
528
|
+
*/
|
529
|
+
422: HTTPValidationError;
|
530
|
+
};
|
531
|
+
};
|
532
|
+
};
|
533
|
+
'/edge_worker/v1/logs/push/{dag_id}/{task_id}/{run_id}/{try_number}/{map_index}': {
|
534
|
+
post: {
|
535
|
+
req: PushLogsData;
|
536
|
+
res: {
|
537
|
+
/**
|
538
|
+
* Successful Response
|
539
|
+
*/
|
540
|
+
200: null;
|
541
|
+
/**
|
542
|
+
* Bad Request
|
543
|
+
*/
|
544
|
+
400: HTTPExceptionResponse;
|
545
|
+
/**
|
546
|
+
* Forbidden
|
547
|
+
*/
|
548
|
+
403: HTTPExceptionResponse;
|
549
|
+
/**
|
550
|
+
* Validation Error
|
551
|
+
*/
|
552
|
+
422: HTTPValidationError;
|
553
|
+
};
|
554
|
+
};
|
555
|
+
};
|
556
|
+
'/edge_worker/v1/worker/{worker_name}': {
|
557
|
+
post: {
|
558
|
+
req: RegisterData;
|
559
|
+
res: {
|
560
|
+
/**
|
561
|
+
* Successful Response
|
562
|
+
*/
|
563
|
+
200: WorkerRegistrationReturn;
|
564
|
+
/**
|
565
|
+
* Bad Request
|
566
|
+
*/
|
567
|
+
400: HTTPExceptionResponse;
|
568
|
+
/**
|
569
|
+
* Forbidden
|
570
|
+
*/
|
571
|
+
403: HTTPExceptionResponse;
|
572
|
+
/**
|
573
|
+
* Validation Error
|
574
|
+
*/
|
575
|
+
422: HTTPValidationError;
|
576
|
+
};
|
577
|
+
};
|
578
|
+
patch: {
|
579
|
+
req: SetStateData;
|
580
|
+
res: {
|
581
|
+
/**
|
582
|
+
* Successful Response
|
583
|
+
*/
|
584
|
+
200: WorkerSetStateReturn;
|
585
|
+
/**
|
586
|
+
* Bad Request
|
587
|
+
*/
|
588
|
+
400: HTTPExceptionResponse;
|
589
|
+
/**
|
590
|
+
* Forbidden
|
591
|
+
*/
|
592
|
+
403: HTTPExceptionResponse;
|
593
|
+
/**
|
594
|
+
* Validation Error
|
595
|
+
*/
|
596
|
+
422: HTTPValidationError;
|
597
|
+
};
|
598
|
+
};
|
599
|
+
};
|
600
|
+
'/edge_worker/v1/worker/queues/{worker_name}': {
|
601
|
+
patch: {
|
602
|
+
req: UpdateQueuesData;
|
603
|
+
res: {
|
604
|
+
/**
|
605
|
+
* Successful Response
|
606
|
+
*/
|
607
|
+
200: null;
|
608
|
+
/**
|
609
|
+
* Bad Request
|
610
|
+
*/
|
611
|
+
400: HTTPExceptionResponse;
|
612
|
+
/**
|
613
|
+
* Forbidden
|
614
|
+
*/
|
615
|
+
403: HTTPExceptionResponse;
|
616
|
+
/**
|
617
|
+
* Validation Error
|
618
|
+
*/
|
619
|
+
422: HTTPValidationError;
|
620
|
+
};
|
621
|
+
};
|
622
|
+
};
|
623
|
+
'/edge_worker/v1/health': {
|
624
|
+
get: {
|
625
|
+
res: {
|
626
|
+
/**
|
627
|
+
* Successful Response
|
628
|
+
*/
|
629
|
+
200: {
|
630
|
+
[key: string]: (string);
|
631
|
+
};
|
632
|
+
};
|
633
|
+
};
|
634
|
+
};
|
635
|
+
'/edge_worker/ui/worker': {
|
636
|
+
get: {
|
637
|
+
res: {
|
638
|
+
/**
|
639
|
+
* Successful Response
|
640
|
+
*/
|
641
|
+
200: WorkerCollectionResponse;
|
642
|
+
};
|
643
|
+
};
|
644
|
+
};
|
645
|
+
'/edge_worker/ui/jobs': {
|
646
|
+
get: {
|
647
|
+
res: {
|
648
|
+
/**
|
649
|
+
* Successful Response
|
650
|
+
*/
|
651
|
+
200: JobCollectionResponse;
|
652
|
+
};
|
653
|
+
};
|
654
|
+
};
|
655
|
+
};
|