Skip to content
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

CPU time keys in gather_resource_info.py #37

Open
QLeB opened this issue Feb 2, 2022 · 2 comments
Open

CPU time keys in gather_resource_info.py #37

QLeB opened this issue Feb 2, 2022 · 2 comments

Comments

@QLeB
Copy link
Collaborator

QLeB commented Feb 2, 2022

In https://github.com/LSSTDESC/gen3_workflow/blob/master/python/desc/gen3_workflow/gather_resource_info.py#L23 :
Many tasks do not register any "substep" in the metadata, so their only CPU time related keys are startCpuTime and endCpuTime.
Because they do not start with a capital letter, they are not catch by key.endswith(min_field) and therefore no value is returned.

@QLeB
Copy link
Collaborator Author

QLeB commented Feb 4, 2022

One solution is to use if not key.lower().endswith(min_field.lower()):
but it's not very nice.

@QLeB
Copy link
Collaborator Author

QLeB commented Jun 22, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant