Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Interface to extend for using existing settings decorator in functions.
SettingsApi(*args, **kwargs)
| function_name |
Optional: Sets name of the Function object. If not set, it will default to the name of the method name. additional setting fields :return: Decorator function. |
| http_type |
Set http type of the Function object. |
| retry |
The retry decorator adds <xref:azure.functions.RetryPolicy> to the function settings object for building Function object used in worker function indexing model. This is equivalent to defining RetryPolicy in the function.json which enables function to retry on failure. All optional fields will be given default value by function host when they are parsed by function host. Ref: https://aka.ms/azure_functions_retries attempts. :param maximum_interval: The maximum delay interval between retry attempts. :param setting_extra_fields: Keyword arguments for specifying additional setting fields. :return: Decorator function. |
Optional: Sets name of the Function object. If not set, it will default to the name of the method name.
additional setting fields :return: Decorator function.
function_name(name: str, setting_extra_fields: Dict[str, Any] | None = None) -> Callable[[...], Any]
| Name | Description |
|---|---|
|
name
Required
|
Name of the function. |
|
setting_extra_fields
|
Keyword arguments for specifying Default value: None
|
Set http type of the Function object.
http_type(http_type: str) -> Callable[[...], Any]
| Name | Description |
|---|---|
|
http_type
Required
|
Http type of the function. |
| Type | Description |
|---|---|
|
Decorator function. |
The retry decorator adds <xref:azure.functions.RetryPolicy> to the function settings object for building Function object used in worker function indexing model. This is equivalent to defining RetryPolicy in the function.json which enables function to retry on failure. All optional fields will be given default value by function host when they are parsed by function host.
Ref: https://aka.ms/azure_functions_retries
attempts. :param maximum_interval: The maximum delay interval between retry attempts. :param setting_extra_fields: Keyword arguments for specifying additional setting fields. :return: Decorator function.
retry(strategy: str, max_retry_count: str, delay_interval: str | None = None, minimum_interval: str | None = None, maximum_interval: str | None = None, setting_extra_fields: Dict[str, Any] | None = None) -> Callable[[...], Any]
| Name | Description |
|---|---|
|
strategy
Required
|
The retry strategy to use. |
|
max_retry_count
Required
|
The maximum number of retry attempts. |
|
delay_interval
|
The delay interval between retry attempts. Default value: None
|
|
minimum_interval
|
The minimum delay interval between retry Default value: None
|
|
maximum_interval
|
Default value: None
|
|
setting_extra_fields
|
Default value: None
|
Name of function app script file in which all the functions are defined.
Script file defined here is for placeholder purpose, please refer to worker defined script file path as the single point of truth.
| Type | Description |
|---|---|
|
Script file name. |
Azure SDK for Python feedback
Azure SDK for Python is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in