-
Notifications
You must be signed in to change notification settings - Fork 437
Job state printing is broken for python > 3.10 #6526
Copy link
Copy link
Open
Labels
api: vertex-aiIssues related to the googleapis/python-aiplatform API.Issues related to the googleapis/python-aiplatform API.
Description
python-aiplatform/google/cloud/aiplatform/training_jobs.py
Lines 973 to 978 in 1fba45b
| "%s %s current state:\n%s" | |
| % ( | |
| self.__class__.__name__, | |
| self._gca_resource.name, | |
| self._gca_resource.state, | |
| ) |
it happens when running custom training job:
from google.cloud.aiplatform import CustomPythonPackageTrainingJob
training_job = gcloud_aiplatform.CustomPythonPackageTrainingJob(whatever)
training_job.run(whatever)
while for python 3.10 it prints
INFO:google.cloud.aiplatform.training_jobs:CustomContainerTrainingJob projects/111/locations/europe-west1/trainingPipelines/222 current state:
PipelineState.PIPELINE_STATE_RUNNING
INFO:google.cloud.aiplatform.training_jobs:CustomContainerTrainingJob projects/111/locations/europe-west1/trainingPipelines/222 current state:
PipelineState.PIPELINE_STATE_RUNNING
I
for newer python versions it prints this instead, which is very annoying
INFO:google.cloud.aiplatform.training_jobs:CustomContainerTrainingJob projects/111/locations/europe-west1/trainingPipelines/222 current state:
3
INFO:google.cloud.aiplatform.training_jobs:CustomContainerTrainingJob projects/111/locations/europe-west1/trainingPipelines/222 current state:
3
I
It hit us in avast/wanna-ml#123
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: vertex-aiIssues related to the googleapis/python-aiplatform API.Issues related to the googleapis/python-aiplatform API.