Skip to content

Conversation

simonbray
Copy link
Member

@nsoranzo here is a new PR with only the remapping functionality from #395, to avoid the more complex discussion about how to submit the runtime parameters for now. Could you have a look please?

@simonbray simonbray requested a review from nsoranzo October 25, 2021 09:37
return self._get(url=url)

def rerun_invocation(self, invocation_id: str, inputs_update: Optional[dict] = None,
def rerun_invocation(self, invocation_id: str, remap: bool = False, inputs_update: Optional[dict] = None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding remap here, I think it would be better to add a separate method (rerun_invocation_failed_jobs() maybe?). The implementation for remap=True doesn't share any code with the current one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can also add it as a separate method. The rationale of doing it this way was so that rerun_invocation() would work exactly the same as rerun_job() - either create an entire new job/invocation with remap=False or replace the existing failed one in place with remap=True.

@simonbray simonbray closed this May 27, 2022
@simonbray simonbray deleted the remap-inv2 branch May 27, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants