-
Notifications
You must be signed in to change notification settings - Fork 246
Add resource usage measurement injection to CWL interpreter #5526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
cd214b2
add injected container cpu/memory accounting for cwl and wdl
62e252b
Change output hook and avoid hooking container types that don't need it
adamnovak 8da4efd
Fix type checking
adamnovak 52d319e
Re-document interpreter.py
adamnovak 65d3078
Address interpreter.py review comments
adamnovak cac8297
Note dependency on default runner
adamnovak 4cf943a
Remove incomplete or unwanted tests
adamnovak ef5d547
Make interpreter.py able to be about more than just the code injectio…
adamnovak 79401f3
Stop requiring a fixed Bash path and stop unpacking what could be rea…
adamnovak 02dc3a6
Add Anthropic Claude's idea of what waste_cpu_memory.cwl probably was…
adamnovak 15d11fd
Merge branch 'master' into issues/5477-cpu-usage-docker-cwl
adamnovak a204780
Merge remote-tracking branch 'upstream/master' into issues/5477-cpu-u…
adamnovak 3a9bccf
POSIX-ify injected shell code
adamnovak 95868c0
Stop assuming stat
adamnovak b36cda7
Read cpu stats the same way for cgroups v1 as v2
adamnovak 2eebbfc
Mechanically translate awk to shell
adamnovak f17e682
Complain about how we need to add a mount somehow
adamnovak f5b868e
Hide the usage data in the temp directory
adamnovak df4af80
Merge remote-tracking branch 'upstream/issues/5477-cpu-usage-docker-c…
adamnovak a3f3cbb
Make sure to stop the background monitoring process in the container
adamnovak 17916a0
Make bucket creation handle retry better if the bucket got created
adamnovak 4158f87
Pass through Interrupted exit codes in hopes of passing the fail-with…
adamnovak e5e2390
Move injection back into job class but just one this time
adamnovak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sub-class of
DockerCommandLineJob(itself a sub-class ofContainerCommandLineJob) doesn't overrideContainerCommandLineJob.run()which does its own process monitoring: https://github.com/common-workflow-language/cwltool/blob/1bf74499ca1c4a5f98e7cffb0ad4aa89aa98cb9e/cwltool/job.py#L849-L858