How to use dependency_action method in Sure

Best Python code snippet using sure_python

exit_options.py

Source:exit_options.py Github

copy

Full Screen

1# coding=utf-82# --------------------------------------------------------------------------3# Copyright (c) Microsoft Corporation. All rights reserved.4# Licensed under the MIT License. See License.txt in the project root for5# license information.6#7# Code generated by Microsoft (R) AutoRest Code Generator.8# Changes may cause incorrect behavior and will be lost if the code is9# regenerated.10# --------------------------------------------------------------------------11from msrest.serialization import Model12class ExitOptions(Model):13 """Specifies how the Batch service responds to a particular exit condition.14 :param job_action: An action to take on the job containing the task, if15 the task completes with the given exit condition and the job's16 onTaskFailed property is 'performExitOptionsJobAction'. The default is17 none for exit code 0 and terminate for all other exit conditions. If the18 job's onTaskFailed property is noAction, then specify this property19 returns an error. The add task request fails with an invalid property20 value error;; if you are calling the REST API directly, the HTTP status21 code is 400 (Bad Request). Possible values include: 'none', 'disable',22 'terminate'23 :type job_action: str or :class:`JobAction <azure.batch.models.JobAction>`24 :param dependency_action: An action that the Batch service performs on25 tasks that depend on this task. The default is 'satisfy' for exit code 0,26 and 'block' for all other exit conditions. If the job's27 usesTaskDependencies property is set to false, then specifying the28 dependencyAction property returns an error. The add task request fails29 with an invalid property value error; if you are calling the REST API30 directly, the HTTP status code is 400 (Bad Request). Possible values31 include: 'satisfy', 'block'32 :type dependency_action: str or :class:`DependencyAction33 <azure.batch.models.DependencyAction>`34 """35 _attribute_map = {36 'job_action': {'key': 'jobAction', 'type': 'JobAction'},37 'dependency_action': {'key': 'dependencyAction', 'type': 'DependencyAction'},38 }39 def __init__(self, job_action=None, dependency_action=None):40 self.job_action = job_action...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Sure automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful