polyaxon 2.1.1rc0__py3-none-any.whl → 2.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@ async def start(kind, max_retries, max_interval):
65
65
  await ag.start()
66
66
  return
67
67
  except Exception as e:
68
- logger.warning("Polyaxon agent retrying, error %s", e)
68
+ logger.warning("Polyaxon agent retrying, error %r", e)
69
69
  retry += 1
70
70
 
71
71
 
@@ -14,6 +14,8 @@ class AsyncExecutor(BaseExecutor):
14
14
  )
15
15
 
16
16
  async def refresh(self):
17
+ if self._manager:
18
+ await self._manager.close()
17
19
  manager = super().refresh()
18
20
  await manager.setup()
19
21
  return manager
@@ -1,4 +1,5 @@
1
1
  import atexit
2
+ import logging
2
3
  import re
3
4
 
4
5
  from urllib.parse import quote
@@ -6,6 +7,9 @@ from urllib.parse import quote
6
7
  from polyaxon._sdk.sync_client.api_client import ApiClient
7
8
  from polyaxon.exceptions import ApiException
8
9
 
10
+ aiohttp_logger = logging.getLogger("aiohttp")
11
+ aiohttp_logger.setLevel(logging.ERROR)
12
+
9
13
 
10
14
  class AsyncApiClient(ApiClient):
11
15
  """Generic Async API client for OpenAPI client library builds.
@@ -84,13 +84,18 @@ async def start_sidecar(
84
84
  )
85
85
  if monitor_outputs:
86
86
  last_check = state["last_artifacts_check"]
87
- await sync_artifacts(
88
- fs=fs,
89
- fw=fw,
90
- store_path=connection.store_path,
91
- run_uuid=run_uuid,
92
- exclude=CONTAINER_IGNORE_FOLDERS,
93
- )
87
+ try:
88
+ await sync_artifacts(
89
+ fs=fs,
90
+ fw=fw,
91
+ store_path=connection.store_path,
92
+ run_uuid=run_uuid,
93
+ exclude=CONTAINER_IGNORE_FOLDERS,
94
+ )
95
+ except Exception as e:
96
+ logger.debug(
97
+ "An error occurred while syncing artifacts, Exception %s" % repr(e)
98
+ )
94
99
  try:
95
100
  client.sync_events_summaries(
96
101
  last_check=last_check,
@@ -106,7 +111,7 @@ async def start_sidecar(
106
111
  )
107
112
  update_last_check = True
108
113
  except Exception as e:
109
- logger.info(
114
+ logger.debug(
110
115
  "An error occurred while syncing events summaries, "
111
116
  "Exception %s" % repr(e)
112
117
  )
polyaxon/pkg.py CHANGED
@@ -1,5 +1,5 @@
1
1
  NAME = "polyaxon"
2
- VERSION = "2.1.1-rc0"
2
+ VERSION = "2.1.2"
3
3
  SCHEMA_VERSION = 1.1
4
4
  DESC = "Command Line Interface (CLI) and client to interact with Polyaxon API."
5
5
  URL = "https://github.com/polyaxon/polyaxon"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polyaxon
3
- Version: 2.1.1rc0
3
+ Version: 2.1.2
4
4
  Summary: Command Line Interface (CLI) and client to interact with Polyaxon API.
5
5
  Home-page: https://github.com/polyaxon/polyaxon
6
6
  Author: Polyaxon, Inc.
@@ -46,7 +46,7 @@ Requires-Dist: psutil >=5.4.7
46
46
  Requires-Dist: requests >=2.20.1
47
47
  Requires-Dist: requests-toolbelt >=0.8.0
48
48
  Requires-Dist: rich >=12.0.0
49
- Requires-Dist: sentry-sdk >=1.2.0
49
+ Requires-Dist: sentry-sdk <1.40,>=1.2.0
50
50
  Requires-Dist: urllib3 >=1.25.6
51
51
  Requires-Dist: certifi >=2022.12.7
52
52
  Requires-Dist: pydantic >=1.10.2
@@ -59,10 +59,10 @@ Requires-Dist: moto ==2.0.5 ; extra == 'dev'
59
59
  Provides-Extra: docker
60
60
  Requires-Dist: docker ; extra == 'docker'
61
61
  Provides-Extra: fs
62
- Requires-Dist: adlfs ==2023.12.0 ; extra == 'fs'
63
- Requires-Dist: fsspec ==2023.12.2 ; extra == 'fs'
64
- Requires-Dist: gcsfs ==2023.12.2.post1 ; extra == 'fs'
65
- Requires-Dist: s3fs ==2023.12.2 ; extra == 'fs'
62
+ Requires-Dist: adlfs ==2024.2.0 ; extra == 'fs'
63
+ Requires-Dist: fsspec ==2024.2.0 ; extra == 'fs'
64
+ Requires-Dist: gcsfs ==2024.2.0 ; extra == 'fs'
65
+ Requires-Dist: s3fs ==2024.2.0 ; extra == 'fs'
66
66
  Provides-Extra: fsspec
67
67
  Requires-Dist: fsspec ; extra == 'fsspec'
68
68
  Provides-Extra: gcs
@@ -93,7 +93,7 @@ Requires-Dist: anyio ; extra == 'sidecar'
93
93
  [![Slack](https://img.shields.io/badge/Slack-1.5k%20members-blue.svg?style=flat&logo=slack&longCache=true)](https://polyaxon.com/slack/)
94
94
 
95
95
  [![Docs](https://img.shields.io/badge/docs-stable-brightgreen.svg?style=flat&longCache=true)](https://polyaxon.com/docs/)
96
- [![Release](https://img.shields.io/badge/release-v2.1.1-brightgreen.svg?longCache=true)](https://polyaxon.com/docs/releases/2-1/)
96
+ [![Release](https://img.shields.io/badge/release-v2.1.2-brightgreen.svg?longCache=true)](https://polyaxon.com/docs/releases/2-1/)
97
97
  [![GitHub](https://img.shields.io/badge/issue_tracker-github-blue?style=flat&logo=github&longCache=true)](https://github.com/polyaxon/polyaxon/issues)
98
98
  [![GitHub](https://img.shields.io/badge/roadmap-github-blue?style=flat&logo=github&longCache=true)](https://github.com/orgs/polyaxon/projects/5)
99
99
 
@@ -9,7 +9,7 @@ polyaxon/exceptions.py,sha256=ujvG9p1Pn2KHYbHqB3-faadW46dEuULUQXNtfkd2zk8,10236
9
9
  polyaxon/fs.py,sha256=RS8XmVrrfXfIJXN6cTCCRRYwesCLHVVfC01Vi56lecs,246
10
10
  polyaxon/k8s.py,sha256=nI5oPCSlqU4aaeVShM6SlYS9eqYiYUL4GDXIZ4bnq-I,1051
11
11
  polyaxon/logger.py,sha256=gdZQms37Pe5G2j-Ear5jbSAJeGgX6fnvg7oE8_9MSlc,2309
12
- polyaxon/pkg.py,sha256=u7LRFDoQhC5FLXart2WCvpCvZvfpcucAl6TFTxjyc-I,266
12
+ polyaxon/pkg.py,sha256=I_SIAyhl1cMBt0mmTHpL5GLKvkUSJxn0iHZvIEwVhak,262
13
13
  polyaxon/polyaxonfile.py,sha256=xHmHT_cHomfuAQm82Jhnp71YNN5mQ-Lod7EbonjY4b4,429
14
14
  polyaxon/schemas.py,sha256=l5Lg1IGP6FM_pO8eToY0RUCzVD1kn3Dk5CNM_nsAf60,5877
15
15
  polyaxon/settings.py,sha256=Pxx1-T2oeJ5XmvGFN0YgnVzum_9FyTPaQtl68aQvYc4,4116
@@ -43,7 +43,7 @@ polyaxon/_cli/session.py,sha256=5Plolpxwkv3wiup0pRYBpBPD64dvb4GzeRPz_nuIGRo,6033
43
43
  polyaxon/_cli/utils.py,sha256=jRD1npuD89-0SxtzAx5SE3i4Lvhi8vnfYkmyOMbDxEY,1319
44
44
  polyaxon/_cli/version.py,sha256=bC0T8S6Momr7EvHGV9Swn868x9ZHD7oL8ahQv57yInk,4536
45
45
  polyaxon/_cli/services/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
46
- polyaxon/_cli/services/agent.py,sha256=zSSIbkSlhwY23-Q1_dlcmdpbZRLfigpRs-nlBTjVVn0,2080
46
+ polyaxon/_cli/services/agent.py,sha256=wAGWFKpi-Xkt2_Sk8Z5amUgxgsfjHfDclMGoLf267CU,2080
47
47
  polyaxon/_cli/services/clean_artifacts.py,sha256=CHN7dh7p5Hx5HJV4j_xAMrnNOvQAJfxSwrx6YVj_UD0,3549
48
48
  polyaxon/_cli/services/docker.py,sha256=G6jIYSABEzXYfrBEOTke2TDwTMZfJU-QdIRAL0JvXnU,7867
49
49
  polyaxon/_cli/services/initializer.py,sha256=eBVfCsn32vqtrmJe8lcfHfjUgPtzLM8eLk6rx-cxCnc,9735
@@ -338,7 +338,7 @@ polyaxon/_k8s/custom_resources/kubeflow/pytorch_job.py,sha256=ar4HfszWKis11yYGr0
338
338
  polyaxon/_k8s/custom_resources/kubeflow/tf_job.py,sha256=ciCsiJTnmliWz4gK5HOqXY7TwfE_2vGj--O7iJm_Gt4,3248
339
339
  polyaxon/_k8s/custom_resources/kubeflow/xgb_job.py,sha256=uB4tTNRaU_tVKxI1RzxONrCYdEh9pMZJ9Saz9lwASwI,2441
340
340
  polyaxon/_k8s/executor/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
341
- polyaxon/_k8s/executor/async_executor.py,sha256=3foXSxTESdyakPLNqiJzRDc6TUUaRhY5HKnsbd1CNGU,1801
341
+ polyaxon/_k8s/executor/async_executor.py,sha256=5JShP9O0Jv2Czgyab8BkAVxjuPLD5FWVgBThJUaXsO8,1867
342
342
  polyaxon/_k8s/executor/base.py,sha256=5qD21gfBlAq9KabgMYkExHejs61LtFAUAcnAqsmj3k0,4004
343
343
  polyaxon/_k8s/executor/executor.py,sha256=Qub57Q86SdmBv73CuyFJxydFOIyL0CZKp4B_7aSyLsU,321
344
344
  polyaxon/_k8s/logging/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
@@ -460,7 +460,7 @@ polyaxon/_sdk/api/teams_v1_api.py,sha256=8p1ZnIklJCuAxGGwq9qSvcfSaVxXJYoL7xo2K4q
460
460
  polyaxon/_sdk/api/users_v1_api.py,sha256=oVT5pf-91pXg9Rjuh-WytzjijIztCLte09sA8sx5pcU,72638
461
461
  polyaxon/_sdk/api/versions_v1_api.py,sha256=sweDykt3iZBf7hgMPKOS6c56HtCZUNuvc-jZoLxaGJU,18440
462
462
  polyaxon/_sdk/async_client/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
463
- polyaxon/_sdk/async_client/api_client.py,sha256=dw2Xh928MFDVQtDY-QQ_H8M7PSxix3hxsB-t09s_8FE,9610
463
+ polyaxon/_sdk/async_client/api_client.py,sha256=ak-gtWZtT96913Y0ecmTeuz3miCgsz9yARFzkUfWmJs,9711
464
464
  polyaxon/_sdk/async_client/rest.py,sha256=EVr20-MSoxY6HEgCiZhCRubvitUlEv38zIbDehR1Olc,9631
465
465
  polyaxon/_sdk/schemas/__init__.py,sha256=YG3fQF2ymSfx4e-OnoyDYUKfB7s_72XMaPRvyB2XJSU,5380
466
466
  polyaxon/_sdk/schemas/v1_activity.py,sha256=A5hHSEnAKwQAMz70HHjs7sy-2o0hATEXDsB-D1vTzzM,524
@@ -546,7 +546,7 @@ polyaxon/_services/values.py,sha256=Uyj-kB5omSm3SbwpjqeuboSSOK5dyovoh-RszHPdiQ8,
546
546
  polyaxon/_sidecar/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
547
547
  polyaxon/_sidecar/ignore.py,sha256=-TkUcBAJWA8P3Blh4cYbnKvom-6yqURhU1QSomMnq_c,82
548
548
  polyaxon/_sidecar/processor.py,sha256=XIIxl_9W2wme0xOq-4lBnZeThJrGj0dlaC4_mhSKgVI,3235
549
- polyaxon/_sidecar/container/__init__.py,sha256=zOesztGtTfC02Sg_FghFJwcdrHYh7U7ej8NwlrU29is,5055
549
+ polyaxon/_sidecar/container/__init__.py,sha256=12HJciqE_QbK5PbvTkEhLNWuQplSpMPGzJK5MZXcq8g,5272
550
550
  polyaxon/_sidecar/container/intervals.py,sha256=-tckK4E_Ur0feVsLBhUPUu6brx-JaU6RDFQBW-TAo6I,304
551
551
  polyaxon/_sidecar/container/monitors/__init__.py,sha256=x12AMMGTi4cK_LaDvEK0gd3jZ3R57iPnp5ICehCwOl8,202
552
552
  polyaxon/_sidecar/container/monitors/artifacts.py,sha256=BlXMOiKJFhHcRpJ9T7izh-GtcXoKfulZmzfq7aBgdOY,2746
@@ -594,9 +594,9 @@ polyaxon/tuners/hyperopt.py,sha256=zd6MblMGkooqLGDFJVo5kClqYnBoMwGj-opqqj8FDzQ,7
594
594
  polyaxon/tuners/mapping.py,sha256=pOdHCiwEufTk-QT7pNyjBjAEWNTM-lMC17WNTCk7C24,69
595
595
  polyaxon/tuners/random_search.py,sha256=6VEekM3N9h6E1lbpVTTUGKFPJlGMY2u-GkG615_nQcI,80
596
596
  polyaxon_sdk/__init__.py,sha256=HWvFdGWESyVG3f26K_szewiG-McMOHFkXKTfZcBlHsM,92
597
- polyaxon-2.1.1rc0.dist-info/LICENSE,sha256=86kroZbQUDsmSWOomB7dpceG65UXiVSPob4581tStBc,11349
598
- polyaxon-2.1.1rc0.dist-info/METADATA,sha256=UrRAqPA-L21dPmZJzXh_QRlZuyFBEEPRaTQsJEbO5wA,11716
599
- polyaxon-2.1.1rc0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
600
- polyaxon-2.1.1rc0.dist-info/entry_points.txt,sha256=aFbUMjkg9vzRBVAFhqvR1m92yG8Cov7UAF0zViGfoQw,70
601
- polyaxon-2.1.1rc0.dist-info/top_level.txt,sha256=I_2e_Vv8rdcqWcMMdZocbrHiKPNGqoSMBqIObrw00Rg,22
602
- polyaxon-2.1.1rc0.dist-info/RECORD,,
597
+ polyaxon-2.1.2.dist-info/LICENSE,sha256=86kroZbQUDsmSWOomB7dpceG65UXiVSPob4581tStBc,11349
598
+ polyaxon-2.1.2.dist-info/METADATA,sha256=OWr4CaH0wfUDRqFRtwFj5KvRdRTEg3dZ9hiznZanivs,11709
599
+ polyaxon-2.1.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
600
+ polyaxon-2.1.2.dist-info/entry_points.txt,sha256=aFbUMjkg9vzRBVAFhqvR1m92yG8Cov7UAF0zViGfoQw,70
601
+ polyaxon-2.1.2.dist-info/top_level.txt,sha256=I_2e_Vv8rdcqWcMMdZocbrHiKPNGqoSMBqIObrw00Rg,22
602
+ polyaxon-2.1.2.dist-info/RECORD,,