apache-airflow-providers-edge3 1.3.0rc1__py3-none-any.whl → 1.4.1__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.
Files changed (34) hide show
  1. airflow/providers/edge3/__init__.py +1 -1
  2. airflow/providers/edge3/cli/api_client.py +9 -3
  3. airflow/providers/edge3/cli/worker.py +16 -10
  4. airflow/providers/edge3/example_dags/win_test.py +1 -1
  5. airflow/providers/edge3/executors/edge_executor.py +37 -6
  6. airflow/providers/edge3/models/edge_job.py +18 -15
  7. airflow/providers/edge3/models/edge_logs.py +11 -8
  8. airflow/providers/edge3/models/edge_worker.py +44 -26
  9. airflow/providers/edge3/openapi/v2-edge-generated.yaml +13 -33
  10. airflow/providers/edge3/plugins/edge_executor_plugin.py +26 -19
  11. airflow/providers/edge3/plugins/www/dist/main.umd.cjs +14 -66
  12. airflow/providers/edge3/plugins/www/openapi-gen/requests/schemas.gen.ts +4 -4
  13. airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts +10 -10
  14. airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts +21 -21
  15. airflow/providers/edge3/plugins/www/package.json +26 -26
  16. airflow/providers/edge3/plugins/www/pnpm-lock.yaml +1637 -1683
  17. airflow/providers/edge3/plugins/www/src/components/ui/Alert.tsx +0 -1
  18. airflow/providers/edge3/plugins/www/src/layouts/EdgeLayout.tsx +9 -10
  19. airflow/providers/edge3/plugins/www/src/layouts/NavTabs.tsx +1 -8
  20. airflow/providers/edge3/plugins/www/src/main.tsx +5 -4
  21. airflow/providers/edge3/plugins/www/src/pages/JobsPage.tsx +7 -8
  22. airflow/providers/edge3/plugins/www/src/theme.ts +0 -1
  23. airflow/providers/edge3/plugins/www/src/utils/index.ts +0 -1
  24. airflow/providers/edge3/plugins/www/vite.config.ts +2 -1
  25. airflow/providers/edge3/version_compat.py +5 -0
  26. airflow/providers/edge3/worker_api/routes/_v2_compat.py +1 -0
  27. airflow/providers/edge3/worker_api/routes/jobs.py +5 -6
  28. airflow/providers/edge3/worker_api/routes/ui.py +8 -3
  29. airflow/providers/edge3/worker_api/routes/worker.py +9 -5
  30. {apache_airflow_providers_edge3-1.3.0rc1.dist-info → apache_airflow_providers_edge3-1.4.1.dist-info}/METADATA +35 -14
  31. {apache_airflow_providers_edge3-1.3.0rc1.dist-info → apache_airflow_providers_edge3-1.4.1.dist-info}/RECORD +33 -34
  32. airflow/providers/edge3/plugins/www/src/utils/tokenHandler.ts +0 -51
  33. {apache_airflow_providers_edge3-1.3.0rc1.dist-info → apache_airflow_providers_edge3-1.4.1.dist-info}/WHEEL +0 -0
  34. {apache_airflow_providers_edge3-1.3.0rc1.dist-info → apache_airflow_providers_edge3-1.4.1.dist-info}/entry_points.txt +0 -0
@@ -81,9 +81,6 @@ export const $ExecuteTask = {
81
81
  type: 'string',
82
82
  title: 'Token'
83
83
  },
84
- ti: {
85
- '$ref': '#/components/schemas/TaskInstance'
86
- },
87
84
  dag_rel_path: {
88
85
  type: 'string',
89
86
  format: 'path',
@@ -103,6 +100,9 @@ export const $ExecuteTask = {
103
100
  ],
104
101
  title: 'Log Path'
105
102
  },
103
+ ti: {
104
+ '$ref': '#/components/schemas/TaskInstance'
105
+ },
106
106
  type: {
107
107
  type: 'string',
108
108
  const: 'ExecuteTask',
@@ -111,7 +111,7 @@ export const $ExecuteTask = {
111
111
  }
112
112
  },
113
113
  type: 'object',
114
- required: ['token', 'ti', 'dag_rel_path', 'bundle_info', 'log_path'],
114
+ required: ['token', 'dag_rel_path', 'bundle_info', 'log_path', 'ti'],
115
115
  title: 'ExecuteTask',
116
116
  description: 'Execute the given Task.'
117
117
  } as const;
@@ -47,7 +47,7 @@ export class JobsService {
47
47
  * @param data.mapIndex For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
48
48
  * @param data.state State of the assigned task under execution.
49
49
  * @param data.authorization JWT Authorization Token
50
- * @returns null Successful Response
50
+ * @returns unknown Successful Response
51
51
  * @throws ApiError
52
52
  */
53
53
  public static state(data: StateData): CancelablePromise<StateResponse> {
@@ -122,7 +122,7 @@ export class LogsService {
122
122
  * @param data.mapIndex For dynamically mapped tasks the mapping number, -1 if the task is not mapped.
123
123
  * @param data.authorization JWT Authorization Token
124
124
  * @param data.requestBody
125
- * @returns null Successful Response
125
+ * @returns unknown Successful Response
126
126
  * @throws ApiError
127
127
  */
128
128
  public static pushLogs(data: PushLogsData): CancelablePromise<PushLogsResponse> {
@@ -218,7 +218,7 @@ export class WorkerService {
218
218
  * @param data.workerName Hostname or instance name of the worker
219
219
  * @param data.authorization JWT Authorization Token
220
220
  * @param data.requestBody
221
- * @returns null Successful Response
221
+ * @returns unknown Successful Response
222
222
  * @throws ApiError
223
223
  */
224
224
  public static updateQueues(data: UpdateQueuesData): CancelablePromise<UpdateQueuesResponse> {
@@ -292,7 +292,7 @@ export class UiService {
292
292
  * @param data The data for the request.
293
293
  * @param data.workerName
294
294
  * @param data.requestBody
295
- * @returns null Successful Response
295
+ * @returns unknown Successful Response
296
296
  * @throws ApiError
297
297
  */
298
298
  public static requestWorkerMaintenance(data: RequestWorkerMaintenanceData): CancelablePromise<RequestWorkerMaintenanceResponse> {
@@ -316,7 +316,7 @@ export class UiService {
316
316
  * @param data The data for the request.
317
317
  * @param data.workerName
318
318
  * @param data.requestBody
319
- * @returns null Successful Response
319
+ * @returns unknown Successful Response
320
320
  * @throws ApiError
321
321
  */
322
322
  public static updateWorkerMaintenance(data: UpdateWorkerMaintenanceData): CancelablePromise<UpdateWorkerMaintenanceResponse> {
@@ -339,7 +339,7 @@ export class UiService {
339
339
  * Exit a worker from maintenance mode.
340
340
  * @param data The data for the request.
341
341
  * @param data.workerName
342
- * @returns null Successful Response
342
+ * @returns unknown Successful Response
343
343
  * @throws ApiError
344
344
  */
345
345
  public static exitWorkerMaintenance(data: ExitWorkerMaintenanceData): CancelablePromise<ExitWorkerMaintenanceResponse> {
@@ -360,7 +360,7 @@ export class UiService {
360
360
  * Request shutdown of a worker.
361
361
  * @param data The data for the request.
362
362
  * @param data.workerName
363
- * @returns null Successful Response
363
+ * @returns unknown Successful Response
364
364
  * @throws ApiError
365
365
  */
366
366
  public static requestWorkerShutdown(data: RequestWorkerShutdownData): CancelablePromise<RequestWorkerShutdownResponse> {
@@ -381,7 +381,7 @@ export class UiService {
381
381
  * Delete a worker record from the system.
382
382
  * @param data The data for the request.
383
383
  * @param data.workerName
384
- * @returns null Successful Response
384
+ * @returns unknown Successful Response
385
385
  * @throws ApiError
386
386
  */
387
387
  public static deleteWorker(data: DeleteWorkerData): CancelablePromise<DeleteWorkerResponse> {
@@ -403,7 +403,7 @@ export class UiService {
403
403
  * @param data The data for the request.
404
404
  * @param data.workerName
405
405
  * @param data.queueName
406
- * @returns null Successful Response
406
+ * @returns unknown Successful Response
407
407
  * @throws ApiError
408
408
  */
409
409
  public static addWorkerQueue(data: AddWorkerQueueData): CancelablePromise<AddWorkerQueueResponse> {
@@ -426,7 +426,7 @@ export class UiService {
426
426
  * @param data The data for the request.
427
427
  * @param data.workerName
428
428
  * @param data.queueName
429
- * @returns null Successful Response
429
+ * @returns unknown Successful Response
430
430
  * @throws ApiError
431
431
  */
432
432
  public static removeWorkerQueue(data: RemoveWorkerQueueData): CancelablePromise<RemoveWorkerQueueResponse> {
@@ -52,10 +52,10 @@ export type EdgeWorkerState = 'starting' | 'running' | 'idle' | 'shutdown reques
52
52
  */
53
53
  export type ExecuteTask = {
54
54
  token: string;
55
- ti: TaskInstance;
56
55
  dag_rel_path: string;
57
56
  bundle_info: BundleInfo;
58
57
  log_path: string | null;
58
+ ti: TaskInstance;
59
59
  type?: "ExecuteTask";
60
60
  };
61
61
 
@@ -359,7 +359,7 @@ export type StateData = {
359
359
  tryNumber: number;
360
360
  };
361
361
 
362
- export type StateResponse = null;
362
+ export type StateResponse = unknown;
363
363
 
364
364
  export type LogfilePathData = {
365
365
  /**
@@ -418,7 +418,7 @@ export type PushLogsData = {
418
418
  tryNumber: number;
419
419
  };
420
420
 
421
- export type PushLogsResponse = null;
421
+ export type PushLogsResponse = unknown;
422
422
 
423
423
  export type RegisterData = {
424
424
  /**
@@ -460,7 +460,7 @@ export type UpdateQueuesData = {
460
460
  workerName: string;
461
461
  };
462
462
 
463
- export type UpdateQueuesResponse = null;
463
+ export type UpdateQueuesResponse = unknown;
464
464
 
465
465
  export type HealthResponse = {
466
466
  [key: string]: (string);
@@ -475,46 +475,46 @@ export type RequestWorkerMaintenanceData = {
475
475
  workerName: string;
476
476
  };
477
477
 
478
- export type RequestWorkerMaintenanceResponse = null;
478
+ export type RequestWorkerMaintenanceResponse = unknown;
479
479
 
480
480
  export type UpdateWorkerMaintenanceData = {
481
481
  requestBody: MaintenanceRequest;
482
482
  workerName: string;
483
483
  };
484
484
 
485
- export type UpdateWorkerMaintenanceResponse = null;
485
+ export type UpdateWorkerMaintenanceResponse = unknown;
486
486
 
487
487
  export type ExitWorkerMaintenanceData = {
488
488
  workerName: string;
489
489
  };
490
490
 
491
- export type ExitWorkerMaintenanceResponse = null;
491
+ export type ExitWorkerMaintenanceResponse = unknown;
492
492
 
493
493
  export type RequestWorkerShutdownData = {
494
494
  workerName: string;
495
495
  };
496
496
 
497
- export type RequestWorkerShutdownResponse = null;
497
+ export type RequestWorkerShutdownResponse = unknown;
498
498
 
499
499
  export type DeleteWorkerData = {
500
500
  workerName: string;
501
501
  };
502
502
 
503
- export type DeleteWorkerResponse = null;
503
+ export type DeleteWorkerResponse = unknown;
504
504
 
505
505
  export type AddWorkerQueueData = {
506
506
  queueName: string;
507
507
  workerName: string;
508
508
  };
509
509
 
510
- export type AddWorkerQueueResponse = null;
510
+ export type AddWorkerQueueResponse = unknown;
511
511
 
512
512
  export type RemoveWorkerQueueData = {
513
513
  queueName: string;
514
514
  workerName: string;
515
515
  };
516
516
 
517
- export type RemoveWorkerQueueResponse = null;
517
+ export type RemoveWorkerQueueResponse = unknown;
518
518
 
519
519
  export type $OpenApiTs = {
520
520
  '/edge_worker/v1/jobs/fetch/{worker_name}': {
@@ -547,7 +547,7 @@ export type $OpenApiTs = {
547
547
  /**
548
548
  * Successful Response
549
549
  */
550
- 200: null;
550
+ 200: unknown;
551
551
  /**
552
552
  * Bad Request
553
553
  */
@@ -593,7 +593,7 @@ export type $OpenApiTs = {
593
593
  /**
594
594
  * Successful Response
595
595
  */
596
- 200: null;
596
+ 200: unknown;
597
597
  /**
598
598
  * Bad Request
599
599
  */
@@ -660,7 +660,7 @@ export type $OpenApiTs = {
660
660
  /**
661
661
  * Successful Response
662
662
  */
663
- 200: null;
663
+ 200: unknown;
664
664
  /**
665
665
  * Bad Request
666
666
  */
@@ -715,7 +715,7 @@ export type $OpenApiTs = {
715
715
  /**
716
716
  * Successful Response
717
717
  */
718
- 200: null;
718
+ 200: unknown;
719
719
  /**
720
720
  * Validation Error
721
721
  */
@@ -728,7 +728,7 @@ export type $OpenApiTs = {
728
728
  /**
729
729
  * Successful Response
730
730
  */
731
- 200: null;
731
+ 200: unknown;
732
732
  /**
733
733
  * Validation Error
734
734
  */
@@ -741,7 +741,7 @@ export type $OpenApiTs = {
741
741
  /**
742
742
  * Successful Response
743
743
  */
744
- 200: null;
744
+ 200: unknown;
745
745
  /**
746
746
  * Validation Error
747
747
  */
@@ -756,7 +756,7 @@ export type $OpenApiTs = {
756
756
  /**
757
757
  * Successful Response
758
758
  */
759
- 200: null;
759
+ 200: unknown;
760
760
  /**
761
761
  * Validation Error
762
762
  */
@@ -771,7 +771,7 @@ export type $OpenApiTs = {
771
771
  /**
772
772
  * Successful Response
773
773
  */
774
- 200: null;
774
+ 200: unknown;
775
775
  /**
776
776
  * Validation Error
777
777
  */
@@ -786,7 +786,7 @@ export type $OpenApiTs = {
786
786
  /**
787
787
  * Successful Response
788
788
  */
789
- 200: null;
789
+ 200: unknown;
790
790
  /**
791
791
  * Validation Error
792
792
  */
@@ -799,7 +799,7 @@ export type $OpenApiTs = {
799
799
  /**
800
800
  * Successful Response
801
801
  */
802
- 200: null;
802
+ 200: unknown;
803
803
  /**
804
804
  * Validation Error
805
805
  */
@@ -32,48 +32,48 @@
32
32
  "coverage": "vitest run --coverage"
33
33
  },
34
34
  "dependencies": {
35
- "@chakra-ui/react": "^3.20.0",
35
+ "@chakra-ui/react": "^3.28.0",
36
36
  "@emotion/react": "^11.14.0",
37
- "@tanstack/react-query": "^5.75.1",
38
- "axios": "^1.12.0",
37
+ "@tanstack/react-query": "^5.90.5",
38
+ "axios": "^1.12.2",
39
39
  "next-themes": "^0.4.6",
40
- "react": "^19.1.1",
41
- "react-dom": "^19.1.1",
40
+ "react": "^19.2.0",
41
+ "react-dom": "^19.2.0",
42
42
  "react-icons": "^5.5.0",
43
- "react-router-dom": "^6.30.0",
43
+ "react-router-dom": "^7.9.4",
44
44
  "react-timeago": "^8.3.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@7nohe/openapi-react-query-codegen": "^1.6.2",
48
- "@eslint/compat": "^1.2.9",
49
- "@eslint/js": "^9.25.1",
50
- "@stylistic/eslint-plugin": "^2.13.0",
51
- "@testing-library/jest-dom": "^6.6.3",
48
+ "@eslint/compat": "^1.4.0",
49
+ "@eslint/js": "^9.38.0",
50
+ "@stylistic/eslint-plugin": "^5.5.0",
51
+ "@testing-library/jest-dom": "^6.9.1",
52
52
  "@testing-library/react": "^16.3.0",
53
- "@trivago/prettier-plugin-sort-imports": "^4.3.0",
54
- "@types/node": "^22.15.3",
55
- "@types/react": "^18.3.19",
56
- "@types/react-dom": "^18.3.5",
57
- "@vitejs/plugin-react-swc": "^4.0.1",
58
- "@vitest/coverage-v8": "^3.2.4",
59
- "eslint": "^9.25.1",
53
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
54
+ "@types/node": "^24.9.1",
55
+ "@types/react": "^19.2.2",
56
+ "@types/react-dom": "^19.2.2",
57
+ "@vitejs/plugin-react-swc": "^4.2.0",
58
+ "@vitest/coverage-v8": "^4.0.3",
59
+ "eslint": "^9.38.0",
60
60
  "eslint-config-prettier": "^10.1.2",
61
61
  "eslint-plugin-jsx-a11y": "^6.10.2",
62
- "eslint-plugin-perfectionist": "^4.12.3",
62
+ "eslint-plugin-perfectionist": "^4.15.1",
63
63
  "eslint-plugin-prettier": "^5.2.6",
64
64
  "eslint-plugin-react": "^7.37.5",
65
- "eslint-plugin-react-hooks": "^5.2.0",
66
- "eslint-plugin-react-refresh": "^0.4.20",
67
- "eslint-plugin-unicorn": "^55.0.0",
68
- "globals": "^15.15.0",
69
- "happy-dom": "^17.4.6",
65
+ "eslint-plugin-react-hooks": "^7.0.1",
66
+ "eslint-plugin-react-refresh": "^0.4.24",
67
+ "eslint-plugin-unicorn": "^62.0.0",
68
+ "globals": "^16.4.0",
69
+ "happy-dom": "^20.0.8",
70
70
  "prettier": "^3.5.3",
71
71
  "typescript": "~5.8.3",
72
- "typescript-eslint": "^8.31.1",
73
- "vite": "^7.1.5",
72
+ "typescript-eslint": "^8.46.2",
73
+ "vite": "^7.1.12",
74
74
  "vite-plugin-css-injected-by-js": "^3.5.2",
75
75
  "vite-plugin-dts": "^4.5.4",
76
- "vitest": "^3.2.4"
76
+ "vitest": "^4.0.3"
77
77
  },
78
78
  "pnpm": {
79
79
  "onlyBuiltDependencies": [