Trollgeir commented on a change in pull request #5319: 
[AIRFLOW-4564][AIRFLOW-4523][AIRFLOW-4577] Azure Container Instance  bugfixes 
and improvements
URL: https://github.com/apache/airflow/pull/5319#discussion_r296495332
 
 

 ##########
 File path: airflow/contrib/operators/azure_container_instances_operator.py
 ##########
 @@ -154,16 +204,24 @@ def execute(self, context):
                                                 share_name,
                                                 account_name,
                                                 read_only))
-            volume_mounts.append(VolumeMount(mount_name, mount_path, 
read_only))
+            volume_mounts.append(VolumeMount(name=mount_name,
+                                             mount_path=mount_path,
+                                             read_only=read_only))
 
         exit_code = 1
         try:
             self.log.info("Starting container group with %.1f cpu %.1f mem",
                           self.cpu, self.memory_in_gb)
 
+            gpu_resource = None
+            if self.gpu:
+                gpu_resource = GpuResource(count=self.gpu[0], sku=self.gpu[1])
 
 Review comment:
   This requires the user to actually import and use the named tuple. Right now 
the user can choose to use the named tuple or just a tuple.
   
   Should we force the user to import the named tuple? The current examples for 
the ACI class uses regular tuples.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to