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

Make parsl.AUTO_LOGNAME generation pluggable #3388

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

benclifford
Copy link
Collaborator

A generation function can now be specified at configuration time, with the previous behaviour invoked as default.

Changed Behaviour

None: If this parameter is not specified, parsl.AUTO_LOGNAME should generate the same names as before this PR.

Type of change

  • New feature

A generation function can now be specified at configuration time,
with the previous behaviour invoked as default.
Comment on lines +53 to +55
std_autopath : function, optional
Sets the function used to generate stdout/stderr specifications when parsl.AUTO_LOGPATH is used. If no function
is specified, generates paths that look like: ``rundir/NNN/task_logs/X/task_{id}_{name}{label}.{out/err}``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NNN is clear to me; what is X in the path name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's str(int(task_id / 10000)).zfill(4) - the 10000s part of the task ID and upwards. I omitted a human description because it's awkwardly verbose for what I intended to be a shortish docstring... I guess something based around "dividing into directories with 10000 tasks each" would work?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure this is fine. I imagine most folks won't be looking at this until they have a reason to. Which means they'll be able to see by example what X is.

@benclifford benclifford merged commit 22128a0 into master Apr 26, 2024
6 checks passed
@benclifford benclifford deleted the benc-ghent-stdautopath branch April 26, 2024 22:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants