@@ -69,6 +69,7 @@ class Task(Resource):
6969 inputs = CompoundField (Input , read_only = False )
7070 outputs = CompoundField (Output , read_only = True )
7171 execution_settings = DictField (read_only = True )
72+ output_location = DictField (read_only = True )
7273 use_interruptible_instances = BooleanField (read_only = False )
7374 origin = StringField (read_only = True , name = 'origin_id' )
7475
@@ -141,7 +142,7 @@ def query(cls, project=None, status=None, batch=None,
141142 def create (cls , name , project , app , revision = None , batch_input = None ,
142143 batch_by = None , inputs = None , description = None , run = False ,
143144 disable_batch = False , interruptible = None ,
144- execution_settings = None , api = None ):
145+ execution_settings = None , output_location = None , api = None ):
145146
146147 """
147148 Creates a task on server.
@@ -157,6 +158,8 @@ def create(cls, name, project, app, revision=None, batch_input=None,
157158 :param disable_batch: If True disables batching of a batch task.
158159 :param interruptible: If True interruptible instance will be used.
159160 :param execution_settings: Execution settings for the task.
161+ :param output_location: Dictionary that allows you to define the exact
162+ location where your task outputs will be stored.
160163 :param api: Api instance.
161164 :return: Task object.
162165 :raises: TaskValidationError if validation Fails.
@@ -199,6 +202,9 @@ def create(cls, name, project, app, revision=None, batch_input=None,
199202 if execution_settings :
200203 task_data .update ({'execution_settings' : execution_settings })
201204
205+ if output_location :
206+ task_data .update ({'output_location' : output_location })
207+
202208 if run :
203209 params .update ({'action' : 'run' })
204210
0 commit comments