You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
# v26.18.1
4
+
5
+
- Fix memory leak in batches caused by now tidying up the remote handler objects after a task has completed.
6
+
- Fixed potential but very small memory leak in logger where loggers were not being removed from the logger dictionary after they were closed.
7
+
- Add `OTF_LOG_MEMORY_USAGE` environment variable to allow logging of RSS memory usage at each batch poll interval using the batch logger. This is useful for diagnosing memory growth in long-running batches. Added optional dev dependency `psutil` to allow this. Needs to be installed manually, otherwise log will just output `-1.0` for RSS memory usage.
8
+
3
9
# v26.18.0
4
10
5
11
- Disable logging of initialisation events by default, can be enabled by setting env var `OTG_LOG_INIT_EVENTS=1`
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -177,6 +177,8 @@ These are some environment variables that can be used to customise the behaviour
177
177
-`OTF_LOG_JSON` - Stderr logging will be in JSON format. Set to `1` to enable
178
178
-`OTF_LOG_DIRECTORY` - Path under which log files are written
179
179
-`OTF_NO_THREAD_SLEEP` - Disable the 1-second sleep between batch task thread creation. This sleep exists to prevent race conditions with concurrent protocol imports. Only disable this if you understand the implications. Set to `1` to disable.
180
+
-`OTF_BATCH_POLL_INTERVAL` - Interval in seconds between batch status-check loop iterations (default: `5`). Reducing this makes batches respond faster when tasks complete, at the cost of higher CPU polling overhead. **Intended for testing only — do not change in production unless you fully understand the trade-offs.**
181
+
-`OTF_LOG_MEMORY_USAGE` - Set to `1` to log the RSS memory usage of the OTF process at each batch poll interval using the batch logger. Useful for diagnosing memory growth in long-running batches. Requires `psutil` to be installed separately.
180
182
-`OTF_RUN_ID` - (meant for internal use) An aggregator for log files. When set, all log files for a run will go under this sub directory. E.g. running a batch, all execution and transfer logs will be dropped into this sub directory, rather than a directory for each task name. This is equivalent to using `-r` or `--runId` command line arguments, which is generally preferred.
181
183
-`OTF_SSH_KEY` - The private SSH key to use by default for all SSH connections. This is essential when using a basic docker container to trigger OTF. If not specified, it will default to use any private SSH keys available to the user executing the application.
182
184
-`OTF_STAGING_DIR` - Staging base directory to place files before they're dropped into their final location. Default is `/tmp`
|`OTF_LAZY_LOAD_VARIABLES`| Set to `1` to only resolve variables that are referenced by the current task |
128
+
|`OTF_NO_THREAD_SLEEP`| Set to `1` to disable the 1-second sleep between batch task thread creation |
129
+
|`OTF_BATCH_POLL_INTERVAL`| Interval in seconds between batch status-check iterations (default: `5`). **Testing only** — do not lower in production without understanding the trade-offs |
130
+
|`OTF_LOG_MEMORY_USAGE`| Set to `1` to log RSS memory usage at each batch poll interval via the batch logger. Requires `psutil` to be installed |
131
+
|`OTF_PARAMIKO_ULTRA_DEBUG`| Set to `1` to enable ultra-verbose Paramiko SSH debug output (SFTP only) |
Copy file name to clipboardExpand all lines: src/opentaskpy/cli/task_run.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ def main() -> None:
30
30
OTF_LOG_LEVEL - Equivalent to using -v
31
31
OTF_LOG_INIT_EVENTS - Enable logging of log initialisation events. Set to 1 to enable
32
32
OTF_NO_THREAD_SLEEP - Disable the 1-second sleep between batch task thread creation. Set to 1 to disable
33
+
OTF_BATCH_POLL_INTERVAL - Interval in seconds between batch status-check iterations (default: 5). Intended for testing only; do not lower in production without understanding the trade-offs
34
+
OTF_LOG_MEMORY_USAGE - Set to 1 to log RSS memory usage at each batch poll interval via the batch logger. Requires psutil
33
35
OTF_SSH_KEY - Specify a particular SSH key to use for SSH/SFTP related transfers
34
36
OTF_STAGING_DIR - Staging base directory to place files before final location. Default is /tmp
35
37
OTF_BATCH_RESUME_LOG_DATE - Resume batch runs from a specific date in YYYYMMDD format
0 commit comments