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

Blogs

Check out the latest blogs from LambdaTest on this topic:

How Evolution Of HTTP/2 From HTTP/1 Changed The Web

Ever came across the situation where you really need to open a web page fast and it’s taking forever because of slow internet speed? May be someone in your network is downloading a torrent choking the bandwidth?

A Guide For Testing Fintech Applications(With Examples)

In today’s scenario, software testing has become an important entity across every domain for the benefits it offers. We have already explored a lot about software testing in general in our post need of software testing.

How to Test a Mobile Website Using LambdaTest

This article is a part of our Content Hub. For more in-depth resources, check out our content hub on Mobile Testing Tutorial.

Agile Vs Waterfall Methodology

Before development of a project begins, the project manager’s job is to determine which methodology should be used for the project life cycle. The 2 most popular methodologies are

Common Bugs in User Interface Design

In human physiology, vision plays a major role as 83% of the information humans perceive is via sight. So, your website should never lack in visual appeal. In web design, this is even more important. Every new iteration of design leaves some minor deviations. Sometimes, these minor visual deviations can be very hard to fix or unknowingly break the whole user experience. Hence, it is necessary to make sure that your website provides a perfect and working interface design to the user.

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