Resume from stale batches#155
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #155 +/- ##
==========================================
+ Coverage 88.99% 89.02% +0.03%
==========================================
Files 22 22
Lines 2698 2706 +8
==========================================
+ Hits 2401 2409 +8
Misses 297 297 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new environment variable to control batch resume behavior, updates documentation to reflect this change, and bumps several dependencies to their latest versions. It also includes some improvements to pre-commit configuration and development tooling. The most significant changes are the addition of
OTF_STALE_RUNNING_LOG_SECONDSfor safer batch resumption, dependency upgrades, and improved documentation for developers and automated agents.Batch resume improvements:
OTF_STALE_RUNNING_LOG_SECONDSenvironment variable, allowing batch jobs to resume from a_runninglog file if it has been inactive for a specified number of seconds. This helps prevent resuming from logs still in use by active batches. The logic was added toget_latest_log_fileinsrc/opentaskpy/otflogging.pyand is covered in the documentation. [1] [2]tests/fixtures/ssh_clients.pyto handle the new environment variable.Documentation and onboarding:
AGENTS.mdfile to help autonomous agents and maintainers understand the architecture, contracts, and best practices of the Open Task Framework.README.mdto document the newOTF_STALE_RUNNING_LOG_SECONDSvariable and clarified batch resume behavior. [1] [2]CHANGELOG.mdto reflect the new feature and dependency changes.Dependency and toolchain updates:
pyproject.toml:jsonpath-ng,jsonschema,paramiko,requests,referencing,tenacity, andpython-gnupg.blackto 26.3.1 andpylintto 4.0..pre-commit-config.yamlto useblack26.3.1 and improvedcodespellconfiguration to excludepgp.py. [1] [2]Miscellaneous:
pyproject.toml.