-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into remove-dataclass_json
- Loading branch information
Showing
96 changed files
with
2,833 additions
and
2,200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Clear action cache' | ||
description: 'As suggested by GitHub to prevent low disk space: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- shell: bash | ||
run: | | ||
rm -rf /usr/share/dotnet | ||
rm -rf /opt/ghc | ||
rm -rf "/usr/local/share/boost" | ||
rm -rf "$AGENT_TOOLSDIRECTORY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence. | ||
* @wild-endeavor @kumare3 @eapolinario @pingsutw @cosmicBboy | ||
* @wild-endeavor @kumare3 @eapolinario @pingsutw @cosmicBboy @samhita-alla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _awssagemaker_inference: | ||
|
||
##################################### | ||
AWS Sagemaker Inference API reference | ||
##################################### | ||
|
||
.. tags:: Integration, MachineLearning, AWS | ||
|
||
.. automodule:: flytekitplugins.awssagemaker_inference | ||
:no-members: | ||
:no-inherited-members: | ||
:no-special-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import rich_click as click | ||
|
||
from flytekit.clis.sdk_in_container.constants import CTX_DOMAIN, CTX_PROJECT | ||
from flytekit.clis.sdk_in_container.helpers import FLYTE_REMOTE_INSTANCE_KEY, get_and_save_remote_with_click_context | ||
from flytekit.clis.sdk_in_container.utils import ( | ||
domain_option_dec, | ||
project_option_dec, | ||
) | ||
from flytekit.interfaces import cli_identifiers | ||
from flytekit.remote import FlyteRemote | ||
|
||
EXECUTION_ID = "execution_id" | ||
|
||
|
||
@click.command("relaunch", help="Relaunch a failed execution") | ||
@click.pass_context | ||
def relaunch(ctx: click.Context): | ||
""" | ||
Relaunches an execution. | ||
""" | ||
project = ctx.obj[CTX_PROJECT] | ||
domain = ctx.obj[CTX_DOMAIN] | ||
remote: FlyteRemote = ctx.obj[FLYTE_REMOTE_INSTANCE_KEY] | ||
execution_identifier = cli_identifiers.WorkflowExecutionIdentifier( | ||
project=project, domain=domain, name=ctx.obj[EXECUTION_ID] | ||
) | ||
execution_identifier_resp = remote.client.relaunch_execution(id=execution_identifier) | ||
execution_identifier = cli_identifiers.WorkflowExecutionIdentifier.promote_from_model(execution_identifier_resp) | ||
click.secho("Launched execution: {}".format(execution_identifier), fg="blue") | ||
click.echo("") | ||
|
||
|
||
@click.command("recover", help="Recover a failed execution") | ||
@click.pass_context | ||
def recover(ctx: click.Context): | ||
""" | ||
Recovers an execution. | ||
""" | ||
project = ctx.obj[CTX_PROJECT] | ||
domain = ctx.obj[CTX_DOMAIN] | ||
remote: FlyteRemote = ctx.obj[FLYTE_REMOTE_INSTANCE_KEY] | ||
execution_identifier = cli_identifiers.WorkflowExecutionIdentifier( | ||
project=project, domain=domain, name=ctx.obj[EXECUTION_ID] | ||
) | ||
execution_identifier_resp = remote.client.recover_execution(id=execution_identifier) | ||
execution_identifier = cli_identifiers.WorkflowExecutionIdentifier.promote_from_model(execution_identifier_resp) | ||
click.secho("Launched execution: {}".format(execution_identifier), fg="blue") | ||
click.echo("") | ||
|
||
|
||
execution_help = """ | ||
The execution command allows you to interact with Flyte's execution system, | ||
such as recovering/relaunching a failed execution. | ||
""" | ||
|
||
|
||
@click.group("execution", help=execution_help) | ||
@project_option_dec | ||
@domain_option_dec | ||
@click.option( | ||
EXECUTION_ID, | ||
"--execution-id", | ||
required=True, | ||
type=str, | ||
help="The execution id", | ||
) | ||
@click.pass_context | ||
def execute( | ||
ctx: click.Context, | ||
project: str, | ||
domain: str, | ||
execution_id: str, | ||
): | ||
# save remote instance in ctx.obj | ||
get_and_save_remote_with_click_context(ctx, project, domain) | ||
if ctx.obj is None: | ||
ctx.obj = {} | ||
|
||
ctx.obj.update(ctx.params) | ||
|
||
|
||
execute.add_command(recover) | ||
execute.add_command(relaunch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.