@@ -1578,6 +1578,7 @@ def upload_artifacts_dir(
15781578 relative_to : Optional [str ] = None ,
15791579 agent : Optional [str ] = None ,
15801580 ignore_agent_host : bool = False ,
1581+ ignore_store : Optional [bool ] = None ,
15811582 ):
15821583 """Uploads a full directory to the run's artifacts store path.
15831584
@@ -1592,6 +1593,7 @@ def upload_artifacts_dir(
15921593 and you want to cancel the relative path.
15931594 agent: str, optional, uuid reference of an agent to use.
15941595 ignore_agent_host: bool, optional, flag to ignore agent host
1596+ ignore_store: bool, optional, flag to ignore the ignore store and upload all files under the dirpath.
15951597 Returns:
15961598 str.
15971599 """
@@ -1613,6 +1615,7 @@ def upload_artifacts_dir(
16131615 relative_to = relative_to ,
16141616 agent = agent ,
16151617 ignore_agent_host = ignore_agent_host ,
1618+ ignore_store = ignore_store ,
16161619 )
16171620
16181621 @client_handler (check_no_op = True , check_offline = True )
@@ -1624,6 +1627,7 @@ def upload_artifacts(
16241627 relative_to : Optional [str ] = None ,
16251628 agent : Optional [str ] = None ,
16261629 ignore_agent_host : bool = False ,
1630+ ignore_store : Optional [bool ] = None ,
16271631 ):
16281632 """Uploads multiple artifacts to the run's artifacts store path.
16291633
@@ -1635,6 +1639,7 @@ def upload_artifacts(
16351639 and you want to cancel the relative path.
16361640 agent: str, optional, uuid reference of an agent to use.
16371641 ignore_agent_host: bool, optional, flag to ignore agent host
1642+ ignore_store: bool, optional, flag to ignore the ignore store and upload all files under the dirpath.
16381643 Returns:
16391644 str.
16401645 """
@@ -1648,8 +1653,11 @@ def upload_artifacts(
16481653 self ._reset_agent (agent )
16491654 if not ignore_agent_host :
16501655 self ._use_agent_host ()
1651-
1652- params = get_streams_params (connection = self .artifacts_store )
1656+ params = (
1657+ get_streams_params (connection = self .artifacts_store )
1658+ if not ignore_store
1659+ else {}
1660+ )
16531661 url = get_proxy_run_url (
16541662 service = STREAMS_V1_LOCATION ,
16551663 namespace = self .namespace ,
@@ -3040,6 +3048,7 @@ def push_offline_run(
30403048 clean : bool = False ,
30413049 agent : Optional [str ] = None ,
30423050 ignore_agent_host : bool = False ,
3051+ ignore_store : bool = False ,
30433052 ):
30443053 """Syncs an offline run to Polyaxon's API and artifacts store.
30453054
@@ -3050,6 +3059,7 @@ def push_offline_run(
30503059 clean: bool, optional, flag to clean local path after pushing the run.
30513060 agent: str, optional, uuid reference of an agent to use.
30523061 ignore_agent_host: bool, optional, flag to ignore agent host
3062+ ignore_store: bool, optional, flag to ignore artifacts store and only push the run metadata and lineage.
30533063 """
30543064 # We ensure that the is_offline is False
30553065 is_offline = self ._is_offline
@@ -3084,6 +3094,7 @@ def push_offline_run(
30843094 relative_to = path ,
30853095 agent = agent ,
30863096 ignore_agent_host = ignore_agent_host ,
3097+ ignore_store = ignore_store ,
30873098 )
30883099 logger .info (f"Offline artifacts for run { self .run_data .uuid } uploaded" )
30893100
0 commit comments