apache-airflow-providers-edge3 1.4.1rc2__py3-none-any.whl → 1.5.0__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.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.4.1"
32
+ __version__ = "1.5.0"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.10.0"
@@ -348,7 +348,11 @@ class EdgeWorker:
348
348
  else:
349
349
  used_concurrency += job.edge_job.concurrency_slots
350
350
 
351
- if job.logfile.exists() and job.logfile.stat().st_size > job.logsize:
351
+ if (
352
+ conf.getboolean("edge", "push_logs")
353
+ and job.logfile.exists()
354
+ and job.logfile.stat().st_size > job.logsize
355
+ ):
352
356
  with job.logfile.open("rb") as logfile:
353
357
  push_log_chunk_size = conf.getint("edge", "push_log_chunk_size")
354
358
  logfile.seek(job.logsize, os.SEEK_SET)
@@ -93,6 +93,13 @@ def get_provider_info():
93
93
  "example": None,
94
94
  "default": "524288",
95
95
  },
96
+ "push_logs": {
97
+ "description": "Flag to enable or disable pushing of log files from edge worker to the central site.\nWhen enabled, edge workers will upload task log files in chunks to the central Airflow site.\nWhen disabled, logs will only be available locally on the edge worker.\n",
98
+ "version_added": "1.5.0",
99
+ "type": "boolean",
100
+ "example": "True",
101
+ "default": "True",
102
+ },
96
103
  "worker_umask": {
97
104
  "description": "The default umask to use for edge worker when run in daemon mode\n\nThis controls the file-creation mode mask which determines the initial value of file permission bits\nfor newly created files.\n\nThis value is treated as an octal-integer.\n",
98
105
  "version_added": None,