You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/07/01 03:01:43 UTC

[GitHub] [airflow] Trollgeir commented on a change in pull request #5319: [AIRFLOW-4564][AIRFLOW-4523][AIRFLOW-4577] Azure Container Instance bugfixes and improvements

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_r298868991
 
 

 ##########
 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:
   Using the azure GpuResource model as the parameter type. The operator doesn't currently support gpu, so no need to add a deprecation warning. Those who want to use it should import the model.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services