Skip to content

Commit

Permalink
Fix issue with restart and hub references checks
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Aug 13, 2024
1 parent a97fa31 commit d254d01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions haupt/haupt/apis/runs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def post(self, request, *args, **kwargs):
class RunRestartView(RunCloneView):
AUDITOR_EVENT_TYPES = {"POST": RUN_RESTARTED_ACTOR}

def _get_Additional_fields(self, obj):
def _get_additional_fields(self, obj):
return {}

def clone(self, obj, content, **kwargs):
Expand All @@ -118,7 +118,7 @@ def clone(self, obj, content, **kwargs):
description=kwargs.get("description"),
tags=kwargs.get("tags"),
meta_info=kwargs.get("meta_info"),
**self._get_Additional_fields(obj)
**self._get_additional_fields(obj)
)


Expand Down
4 changes: 2 additions & 2 deletions haupt/haupt/orchestration/operations/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def init_run(
runtime = None
if compiled_operation:
self.is_valid(compiled_operation)
# If the is ab upload we need to check the build process immediately
# If there is an upload we need to check the build process immediately
if pending == V1RunPending.UPLOAD and compiled_operation.build:
upload_artifacts = meta_info.pop(META_UPLOAD_ARTIFACTS, None)
build_instance = self.resolve_build(
Expand All @@ -272,7 +272,7 @@ def init_run(
# Change the pending logic to wait to build and remove build requirements
compiled_operation.build = None
pending = V1RunPending.BUILD
# If the is a clone/resume we need to check the build process and remove it
# If this is a clone/resume we need to check the build process and remove it
if cloning_kind and compiled_operation.build:
compiled_operation.build = None

Expand Down

0 comments on commit d254d01

Please sign in to comment.