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
Add options for transport tasks #4583
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,22 @@ | |
'description': 'Boolean whether to print AiiDA deprecation warnings', | ||
'global_only': False, | ||
}, | ||
'transport.task_retry_initial_interval': { | ||
'key': 'task_retry_initial_interval', | ||
'valid_type': 'int', | ||
'valid_values': None, | ||
'default': 20, | ||
'description': 'Initial time interval for the exponential backoff mechanism.', | ||
'global_only': False, | ||
}, | ||
'transport.task_maximum_attempts': { | ||
'key': 'task_maximum_attempts', | ||
'valid_type': 'int', | ||
'valid_values': None, | ||
'default': 5, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something I also noticed is that some defaults are just set in the option There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeh makes sense if they are not used anywhere else |
||
'description': 'Maximum number of transport task attempts before a Process is Paused.', | ||
'global_only': False, | ||
}, | ||
} | ||
|
||
|
||
|
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.
would be good here if we could validate for
>0
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.
I could imagine merging
valid_type
/valid_values
into something akin to a jsonschema or just allowing it to be callable.e.g.
or
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.
Extending the validation is definitely a good idea, but perhaps we should open a new issue/PR for this? Note that the
valid_type
is also used to parse the option value, so I'm not sure if we can just mergevalid_type
/valid_values
into onevalidator
function.