Fix default value for polyaxonfile path
@@ -6,6 +6,7 @@ import six
import os
from polyaxon_schemas.k8s.templates import constants
+from polyaxon_schemas.k8s.templates.persistent_volumes import get_vol_path
from polyaxon_schemas.polyaxonfile import validator
from polyaxon_schemas.polyaxonfile import reader
from polyaxon_schemas.polyaxonfile.parser import Parser
@@ -139,7 +140,13 @@ class PolyaxonFile(object):
if self.settings:
project_path = self.settings.logging.path
- return project_path or '/tmp/plx_logs/' + self.project.name
+ if project_path:
+ return project_path
+
+ if self.run_type == RunTypes.LOCAL:
+ return '/tmp/plx_logs/' + self.project.name
+
+ return get_vol_path(self.project.name, constants.LOGS_VOLUME, self.run_type)
path = get_path()
if self.matrix_space == 1 or experiment is None:
