[containerapp] az containerapp job create: Add default values for properties#6789
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: |
Please do not paste the internal link. |
| 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.
| 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.
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.
May I ask if these params are new added and have been tested?
There was a problem hiding this comment.
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.