-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[containerapp] az containerapp job create: Add default values for properties #6789
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
Conversation
|
Hi @p-bouchon, |
|
Hi @p-bouchon, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| containerapp job create | cmd containerapp job create update parameter max_executions: added property default=100 |
||
| containerapp job create | cmd containerapp job create update parameter parallelism: added property default=1 |
||
| containerapp job create | cmd containerapp job create update parameter polling_interval: added property default=30 |
||
| containerapp job create | cmd containerapp job create update parameter replica_completion_count: added property default=1 |
||
| containerapp job create | cmd containerapp job create update parameter replica_timeout: added property default=1800 |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
If you want to release a new version of the extension, please change the version in setup.py as well. |
|
Recommend PR title: |
src/containerapp/azext_containerapp/containerapp_job_decorator.py
Outdated
Show resolved
Hide resolved
Please do not paste the internal link. |
src/containerapp/azext_containerapp/containerapp_job_decorator.py
Outdated
Show resolved
Hide resolved
| if self.get_argument_trigger_type() is None: | ||
| raise RequiredArgumentMissingError('Usage error: --trigger-type is required') | ||
| return super().validate_arguments() |
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.
| if self.get_argument_trigger_type() is None: | |
| raise RequiredArgumentMissingError('Usage error: --trigger-type is required') | |
| return super().validate_arguments() | |
| super().validate_arguments() | |
| if self.get_argument_yaml() is None: | |
| if self.get_argument_trigger_type() is None: | |
| raise RequiredArgumentMissingError('Usage error: --trigger-type is required') |
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.
With --yaml, the --trigger-type is not required, right?
|
Hi @yanzhudd @zhoxing-ms |
| c.argument('replica_completion_count', type=int, options_list=['--replica-completion-count', '--rcc'], help='Number of replicas that need to complete successfully for execution to succeed', default=1) | ||
| c.argument('replica_retry_limit', type=int, help='Maximum number of retries before the replica fails. Default: 0.', default=0) | ||
| c.argument('replica_timeout', type=int, help='Maximum number of seconds a replica can execute', default=1800) | ||
| c.argument('parallelism', type=int, help='Maximum number of replicas to run per execution', default=1) | ||
| c.argument('min_executions', type=int, help="Minimum number of job executions that are created for a trigger. Default: 0.", default=0) | ||
| c.argument('max_executions', type=int, help="Maximum number of job executions that are created for a trigger", default=100) | ||
| c.argument('polling_interval', type=int, help="Interval to check each event source in seconds.", default=30) |
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.
May I ask if these params are new added and have been tested?
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.
Yes, Tested in new added test test_containerapp_manualjob_defaults_e2e.
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
'az containerapp job create'
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.