metaflow 2.12.22__tar.gz → 2.12.24__tar.gz
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.
- {metaflow-2.12.22/metaflow.egg-info → metaflow-2.12.24}/PKG-INFO +2 -2
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cli.py +24 -19
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/client/core.py +1 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/develop/stub_generator.py +17 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/develop/stubs.py +3 -3
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_version.py +8 -5
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_client.py +2 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_workflows.py +67 -43
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_workflows_cli.py +1 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes_client.py +4 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes_decorator.py +5 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes_jobsets.py +7 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/bootstrap.py +1 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/micromamba.py +26 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/deployer.py +4 -49
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/metaflow_runner.py +22 -25
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/subprocess_manager.py +33 -17
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/utils.py +53 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/task.py +7 -0
- metaflow-2.12.24/metaflow/version.py +1 -0
- {metaflow-2.12.22 → metaflow-2.12.24/metaflow.egg-info}/PKG-INFO +2 -2
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow.egg-info/requires.txt +1 -1
- metaflow-2.12.22/metaflow/version.py +0 -1
- {metaflow-2.12.22 → metaflow-2.12.24}/LICENSE +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/MANIFEST.in +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/R.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_bashcomplete.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_compat.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_termui_impl.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_textwrap.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_unicodefun.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/_winconsole.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/core.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/decorators.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/exceptions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/formatting.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/globals.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/parser.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/termui.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/testing.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/types.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/click/utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_adapters.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_collections.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_compat.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_functools.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_itertools.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_meta.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/_text.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/importlib_metadata/py.typed +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_elffile.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_manylinux.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_musllinux.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_parser.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_structures.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/_tokenizer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/markers.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/py.typed +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/requirements.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/specifiers.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/tags.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/packaging/version.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_checkers.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_config.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_decorators.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_exceptions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_functions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_importhook.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_memo.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_pytest_plugin.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_suppression.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_transformer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_union_transformer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typeguard/py.typed +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/typing_extensions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_5/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_5/importlib_metadata/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_5/importlib_metadata/_compat.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_5/zipp.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_adapters.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_collections.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_compat.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_functools.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_itertools.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_meta.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/_text.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/importlib_metadata/py.typed +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/typing_extensions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/v3_6/zipp.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/_vendor/zipp.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cards.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cli_args.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/client/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/client/filecache.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/clone_util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/configure_cmd.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/develop/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/main_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/tutorials_cmd.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd/util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/cmd_with_io.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/content_addressed_store.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/datastore_set.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/datastore_storage.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/exceptions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/flow_datastore.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/inputs.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/datastore/task_datastore.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/debug.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/decorators.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/event_logger.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/events.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/exception.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/extension_support/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/extension_support/_empty_file.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/extension_support/cmd.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/extension_support/integrations.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/extension_support/plugins.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/flowspec.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/graph.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/includefile.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/info_file.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/integrations.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/lint.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metadata/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metadata/heartbeat.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metadata/metadata.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metadata/util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_config.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_config_funcs.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_current.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_environment.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/metaflow_profile.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/mflog/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/mflog/mflog.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/mflog/save_logs.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/mflog/save_logs_periodically.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/mflog/tee.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/monitor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/multicore_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/package.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/parameters.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/airflow.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/airflow_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/airflow_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/airflow_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/dag.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/exception.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/plumbing/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/plumbing/set_parameters.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/sensors/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/sensors/base_sensor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/sensors/external_task_sensor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/airflow/sensors/s3_sensor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_events.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_workflows_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/argo_workflows_deployer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/capture_error.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/generate_input_paths.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/argo/jobset_input_paths.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/aws_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/aws_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/batch/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/batch/batch.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/batch/batch_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/batch/batch_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/batch/batch_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/secrets_manager/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/secrets_manager/aws_secrets_manager_secrets_provider.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/dynamo_db_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/event_bridge_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/production_token.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/schedule_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/set_batch_environment.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/step_functions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/step_functions_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/step_functions_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/step_functions_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/aws/step_functions/step_functions_deployer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/azure_credential.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/azure_exceptions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/azure_secret_manager_secrets_provider.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/azure_tail.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/azure_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/blob_service_client_factory.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/azure/includefile_support.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_creator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_datastore.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/base.html +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/basic.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/bundle.css +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/card.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/chevron/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/chevron/main.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/chevron/metadata.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/chevron/renderer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/chevron/tokenizer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/components.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/convert_to_native_type.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/main.js +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/renderer_tools.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_modules/test_cards.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_resolver.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_server.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/card_viewer/viewer.html +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/component_serializer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/cards/exception.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/catch_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datastores/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datastores/azure_storage.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datastores/gs_storage.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datastores/local_storage.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datastores/s3_storage.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/local.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/s3/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/s3/s3.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/s3/s3op.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/s3/s3tail.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/datatools/s3/s3util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/debug_logger.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/debug_monitor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/client.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/client_modules.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/communication/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/communication/bytestream.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/communication/channel.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/communication/socket_bytestream.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/communication/utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/configurations/emulate_test_lib/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/configurations/emulate_test_lib/overrides.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/configurations/emulate_test_lib/server_mappings.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/configurations/test_lib_impl/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/configurations/test_lib_impl/test_lib.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/consts.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/data_transferer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/exception_transferer.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/override_decorators.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/server.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/stub.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/env_escape/utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/environment_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/events_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/frameworks/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/frameworks/pytorch.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/gcp_secret_manager_secrets_provider.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/gs_exceptions.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/gs_storage_client_factory.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/gs_tail.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/gs_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/gcp/includefile_support.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kube_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/kubernetes/kubernetes_job.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/logs_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/metadata/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/metadata/local.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/metadata/service.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/package_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/parallel_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/project_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/conda_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/conda_environment.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/pip.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/pypi_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/pypi_environment.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/pypi/utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/resources_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/retry_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/secrets/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/secrets/inline_secrets_provider.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/secrets/secrets_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/storage_executor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/tag_cli.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/test_unbounded_foreach_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/plugins/timeout_decorator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/procpoll.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/py.typed +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/pylint_wrapper.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/click_api.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/nbdeploy.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runner/nbrun.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/runtime.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/sidecar/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/sidecar/sidecar.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/sidecar/sidecar_messages.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/sidecar/sidecar_subprocess.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/sidecar/sidecar_worker.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/system/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/system/system_logger.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/system/system_monitor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/system/system_utils.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tagging_util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tracing/__init__.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tracing/propagator.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tracing/span_exporter.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tracing/tracing_modules.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tuple_util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/00-helloworld/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/00-helloworld/helloworld.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/01-playlist/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/01-playlist/movies.csv +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/01-playlist/playlist.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/01-playlist/playlist.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/02-statistics/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/02-statistics/movies.csv +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/02-statistics/stats.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/02-statistics/stats.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/03-playlist-redux/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/03-playlist-redux/playlist.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/04-playlist-plus/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/04-playlist-plus/playlist.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/05-hello-cloud/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/05-hello-cloud/hello-cloud.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/05-hello-cloud/hello-cloud.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/06-statistics-redux/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/06-statistics-redux/stats.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/07-worldview/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/07-worldview/worldview.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/08-autopilot/README.md +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/tutorials/08-autopilot/autopilot.ipynb +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/unbounded_foreach.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/util.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow/vendor.py +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow.egg-info/SOURCES.txt +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow.egg-info/dependency_links.txt +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow.egg-info/entry_points.txt +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/metaflow.egg-info/top_level.txt +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/setup.cfg +0 -0
- {metaflow-2.12.22 → metaflow-2.12.24}/setup.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: metaflow
|
3
|
-
Version: 2.12.
|
3
|
+
Version: 2.12.24
|
4
4
|
Summary: Metaflow: More Data Science, Less Engineering
|
5
5
|
Author: Metaflow Developers
|
6
6
|
Author-email: help@metaflow.org
|
@@ -26,7 +26,7 @@ License-File: LICENSE
|
|
26
26
|
Requires-Dist: requests
|
27
27
|
Requires-Dist: boto3
|
28
28
|
Provides-Extra: stubs
|
29
|
-
Requires-Dist: metaflow-stubs==2.12.
|
29
|
+
Requires-Dist: metaflow-stubs==2.12.24; extra == "stubs"
|
30
30
|
|
31
31
|

|
32
32
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import inspect
|
2
|
-
import
|
2
|
+
import json
|
3
3
|
import sys
|
4
4
|
import traceback
|
5
5
|
from datetime import datetime
|
@@ -7,6 +7,7 @@ from functools import wraps
|
|
7
7
|
|
8
8
|
import metaflow.tracing as tracing
|
9
9
|
from metaflow._vendor import click
|
10
|
+
from metaflow.client.core import get_metadata
|
10
11
|
|
11
12
|
from . import decorators, lint, metaflow_version, namespace, parameters, plugins
|
12
13
|
from .cli_args import cli_args
|
@@ -698,15 +699,17 @@ def resume(
|
|
698
699
|
runtime.print_workflow_info()
|
699
700
|
|
700
701
|
runtime.persist_constants()
|
701
|
-
|
702
|
-
|
703
|
-
"
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
702
|
+
|
703
|
+
if runner_attribute_file:
|
704
|
+
with open(runner_attribute_file, "w") as f:
|
705
|
+
json.dump(
|
706
|
+
{
|
707
|
+
"run_id": runtime.run_id,
|
708
|
+
"flow_name": obj.flow.name,
|
709
|
+
"metadata": get_metadata(),
|
710
|
+
},
|
711
|
+
f,
|
712
|
+
)
|
710
713
|
|
711
714
|
# We may skip clone-only resume if this is not a resume leader,
|
712
715
|
# and clone is already complete.
|
@@ -774,15 +777,17 @@ def run(
|
|
774
777
|
obj.flow._set_constants(obj.graph, kwargs)
|
775
778
|
runtime.print_workflow_info()
|
776
779
|
runtime.persist_constants()
|
777
|
-
|
778
|
-
|
779
|
-
"
|
780
|
-
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
780
|
+
|
781
|
+
if runner_attribute_file:
|
782
|
+
with open(runner_attribute_file, "w") as f:
|
783
|
+
json.dump(
|
784
|
+
{
|
785
|
+
"run_id": runtime.run_id,
|
786
|
+
"flow_name": obj.flow.name,
|
787
|
+
"metadata": get_metadata(),
|
788
|
+
},
|
789
|
+
f,
|
790
|
+
)
|
786
791
|
runtime.execute()
|
787
792
|
|
788
793
|
|
@@ -115,6 +115,11 @@ class StubGenerator:
|
|
115
115
|
:type members_from_other_modules: List[str]
|
116
116
|
"""
|
117
117
|
|
118
|
+
# Let metaflow know we are in stubgen mode. This is sometimes useful to skip
|
119
|
+
# some processing like loading libraries, etc. It is used in Metaflow extensions
|
120
|
+
# so do not remove even if you do not see a use for it directly in the code.
|
121
|
+
os.environ["METAFLOW_STUBGEN"] = "1"
|
122
|
+
|
118
123
|
self._write_generated_for = include_generated_for
|
119
124
|
self._pending_modules = ["metaflow"] # type: List[str]
|
120
125
|
self._pending_modules.extend(get_aliased_modules())
|
@@ -398,6 +403,18 @@ class StubGenerator:
|
|
398
403
|
name_with_module = self._get_element_name_with_module(clazz.__class__)
|
399
404
|
buff.write("metaclass=" + name_with_module + "):\n")
|
400
405
|
|
406
|
+
# Add class docstring
|
407
|
+
if clazz.__doc__:
|
408
|
+
buff.write('%s"""\n' % TAB)
|
409
|
+
my_doc = cast(str, deindent_docstring(clazz.__doc__))
|
410
|
+
init_blank = True
|
411
|
+
for line in my_doc.split("\n"):
|
412
|
+
if init_blank and len(line.strip()) == 0:
|
413
|
+
continue
|
414
|
+
init_blank = False
|
415
|
+
buff.write("%s%s\n" % (TAB, line.rstrip()))
|
416
|
+
buff.write('%s"""\n' % TAB)
|
417
|
+
|
401
418
|
# For NamedTuple, we have __annotations__ but no __init__. In that case,
|
402
419
|
# we are going to "create" a __init__ function with the annotations
|
403
420
|
# to show what the class takes.
|
@@ -170,7 +170,7 @@ def install(ctx: Any, force: bool):
|
|
170
170
|
"Metaflow stubs are already installed and valid -- use --force to reinstall"
|
171
171
|
)
|
172
172
|
return
|
173
|
-
mf_version, _ = get_mf_version()
|
173
|
+
mf_version, _ = get_mf_version(True)
|
174
174
|
with tempfile.TemporaryDirectory() as tmp_dir:
|
175
175
|
with open(os.path.join(tmp_dir, "setup.py"), "w") as f:
|
176
176
|
f.write(
|
@@ -261,10 +261,10 @@ def split_version(vers: str) -> Tuple[str, Optional[str]]:
|
|
261
261
|
return vers_split[0], vers_split[1]
|
262
262
|
|
263
263
|
|
264
|
-
def get_mf_version() -> Tuple[str, Optional[str]]:
|
264
|
+
def get_mf_version(public: bool = False) -> Tuple[str, Optional[str]]:
|
265
265
|
from metaflow.metaflow_version import get_version
|
266
266
|
|
267
|
-
return split_version(get_version())
|
267
|
+
return split_version(get_version(public))
|
268
268
|
|
269
269
|
|
270
270
|
def get_stubs_version(stubs_root_path: Optional[str]) -> Tuple[str, Optional[str]]:
|
@@ -195,11 +195,14 @@ def get_version(public=False):
|
|
195
195
|
if ext_version is None:
|
196
196
|
ext_version = getattr(extension_module, "__version__", "<unk>")
|
197
197
|
# Update the package information about reported version for the extension
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
198
|
+
# (only for the full info which is called at least once -- if we update more
|
199
|
+
# it will error out since we can only update_package_info once)
|
200
|
+
if not public:
|
201
|
+
update_package_info(
|
202
|
+
package_name=pkg_name,
|
203
|
+
extension_name=ext_name,
|
204
|
+
package_version=ext_version,
|
205
|
+
)
|
203
206
|
ext_versions.append("%s(%s)" % (ext_name, ext_version))
|
204
207
|
|
205
208
|
# We now have all the information about extensions so we can form the final string
|
@@ -295,6 +295,8 @@ class ArgoClient(object):
|
|
295
295
|
"suspend": schedule is None,
|
296
296
|
"schedule": schedule,
|
297
297
|
"timezone": timezone,
|
298
|
+
"failedJobsHistoryLimit": 10000, # default is unfortunately 1
|
299
|
+
"successfulJobsHistoryLimit": 10000, # default is unfortunately 3
|
298
300
|
"workflowSpec": {"workflowTemplateRef": {"name": name}},
|
299
301
|
},
|
300
302
|
}
|
@@ -1490,7 +1490,11 @@ class ArgoWorkflows(object):
|
|
1490
1490
|
# {{foo.bar['param_name']}}.
|
1491
1491
|
# https://argoproj.github.io/argo-events/tutorials/02-parameterization/
|
1492
1492
|
# http://masterminds.github.io/sprig/strings.html
|
1493
|
-
|
1493
|
+
(
|
1494
|
+
"--%s='{{workflow.parameters.%s}}'"
|
1495
|
+
if parameter["type"] == "JSON"
|
1496
|
+
else "--%s={{workflow.parameters.%s}}"
|
1497
|
+
)
|
1494
1498
|
% (parameter["name"], parameter["name"])
|
1495
1499
|
for parameter in self.parameters.values()
|
1496
1500
|
]
|
@@ -2627,50 +2631,57 @@ class ArgoWorkflows(object):
|
|
2627
2631
|
)
|
2628
2632
|
from kubernetes import client as kubernetes_sdk
|
2629
2633
|
|
2630
|
-
return
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2634
|
+
return (
|
2635
|
+
DaemonTemplate("heartbeat-daemon")
|
2636
|
+
# NOTE: Even though a retry strategy does not work for Argo daemon containers,
|
2637
|
+
# this has the side-effect of protecting the exit hooks of the workflow from failing in case the daemon container errors out.
|
2638
|
+
.retry_strategy(10, 1)
|
2639
|
+
.service_account_name(resources["service_account"])
|
2640
|
+
.container(
|
2641
|
+
to_camelcase(
|
2642
|
+
kubernetes_sdk.V1Container(
|
2643
|
+
name="main",
|
2644
|
+
# TODO: Make the image configurable
|
2645
|
+
image=resources["image"],
|
2646
|
+
command=cmds,
|
2647
|
+
env=[
|
2648
|
+
kubernetes_sdk.V1EnvVar(name=k, value=str(v))
|
2649
|
+
for k, v in env.items()
|
2650
|
+
],
|
2651
|
+
env_from=[
|
2652
|
+
kubernetes_sdk.V1EnvFromSource(
|
2653
|
+
secret_ref=kubernetes_sdk.V1SecretEnvSource(
|
2654
|
+
name=str(k),
|
2655
|
+
# optional=True
|
2656
|
+
)
|
2646
2657
|
)
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2658
|
+
for k in list(
|
2659
|
+
[]
|
2660
|
+
if not resources.get("secrets")
|
2661
|
+
else (
|
2662
|
+
[resources.get("secrets")]
|
2663
|
+
if isinstance(resources.get("secrets"), str)
|
2664
|
+
else resources.get("secrets")
|
2665
|
+
)
|
2655
2666
|
)
|
2656
|
-
|
2657
|
-
|
2658
|
-
|
2659
|
-
|
2660
|
-
|
2661
|
-
|
2662
|
-
|
2663
|
-
|
2664
|
-
|
2665
|
-
|
2666
|
-
|
2667
|
-
|
2668
|
-
|
2669
|
-
|
2670
|
-
|
2671
|
-
|
2672
|
-
|
2673
|
-
)
|
2667
|
+
+ KUBERNETES_SECRETS.split(",")
|
2668
|
+
+ ARGO_WORKFLOWS_KUBERNETES_SECRETS.split(",")
|
2669
|
+
if k
|
2670
|
+
],
|
2671
|
+
resources=kubernetes_sdk.V1ResourceRequirements(
|
2672
|
+
# NOTE: base resources for this are kept to a minimum to save on running costs.
|
2673
|
+
# This has an adverse effect on startup time for the daemon, which can be completely
|
2674
|
+
# alleviated by using a base image that has the required dependencies pre-installed
|
2675
|
+
requests={
|
2676
|
+
"cpu": "200m",
|
2677
|
+
"memory": "100Mi",
|
2678
|
+
},
|
2679
|
+
limits={
|
2680
|
+
"cpu": "200m",
|
2681
|
+
"memory": "100Mi",
|
2682
|
+
},
|
2683
|
+
),
|
2684
|
+
)
|
2674
2685
|
)
|
2675
2686
|
)
|
2676
2687
|
)
|
@@ -3292,6 +3303,19 @@ class DaemonTemplate(object):
|
|
3292
3303
|
self.payload["container"] = container
|
3293
3304
|
return self
|
3294
3305
|
|
3306
|
+
def service_account_name(self, service_account_name):
|
3307
|
+
self.payload["serviceAccountName"] = service_account_name
|
3308
|
+
return self
|
3309
|
+
|
3310
|
+
def retry_strategy(self, times, minutes_between_retries):
|
3311
|
+
if times > 0:
|
3312
|
+
self.payload["retryStrategy"] = {
|
3313
|
+
"retryPolicy": "Always",
|
3314
|
+
"limit": times,
|
3315
|
+
"backoff": {"duration": "%sm" % minutes_between_retries},
|
3316
|
+
}
|
3317
|
+
return self
|
3318
|
+
|
3295
3319
|
def to_json(self):
|
3296
3320
|
return self.payload
|
3297
3321
|
|
@@ -155,7 +155,10 @@ class KubernetesClient(object):
|
|
155
155
|
echo("failed to kill pod %s - %s" % (pod.metadata.name, str(e)))
|
156
156
|
|
157
157
|
with ThreadPoolExecutor() as executor:
|
158
|
-
executor.map(_kill_pod,
|
158
|
+
operated_pods = list(executor.map(_kill_pod, pods))
|
159
|
+
|
160
|
+
if not operated_pods:
|
161
|
+
echo("No active Kubernetes pods found for run *%s*" % run_id)
|
159
162
|
|
160
163
|
def jobset(self, **kwargs):
|
161
164
|
return KubernetesJobSet(self, **kwargs)
|
@@ -543,7 +543,11 @@ class KubernetesDecorator(StepDecorator):
|
|
543
543
|
|
544
544
|
# TODO: Unify this method with the multi-node setup in @batch
|
545
545
|
def _setup_multinode_environment():
|
546
|
-
# FIXME
|
546
|
+
# TODO [FIXME SOON]
|
547
|
+
# Even if Kubernetes may deploy control pods before worker pods, there is always a
|
548
|
+
# possibility that the worker pods may start before the control. In the case that this happens,
|
549
|
+
# the worker pods will not be able to resolve the control pod's IP address and this will cause
|
550
|
+
# the worker pods to fail. This function should account for this in the near future.
|
547
551
|
import socket
|
548
552
|
|
549
553
|
try:
|
@@ -866,7 +866,13 @@ class KubernetesJobSet(object):
|
|
866
866
|
spec=dict(
|
867
867
|
replicatedJobs=[self.control.dump(), self.worker.dump()],
|
868
868
|
suspend=False,
|
869
|
-
startupPolicy=
|
869
|
+
startupPolicy=dict(
|
870
|
+
# We explicitly set an InOrder Startup policy so that
|
871
|
+
# we can ensure that the control pod starts before the worker pods.
|
872
|
+
# This is required so that when worker pods try to access the control's IP
|
873
|
+
# we are able to resolve the control's IP address.
|
874
|
+
startupPolicyOrder="InOrder"
|
875
|
+
),
|
870
876
|
successPolicy=None,
|
871
877
|
# The Failure Policy helps setting the number of retries for the jobset.
|
872
878
|
# but we don't rely on it and instead rely on either the local scheduler
|
@@ -89,7 +89,7 @@ if __name__ == "__main__":
|
|
89
89
|
# TODO: micromamba installation can be pawned off to micromamba.py
|
90
90
|
f"""set -e;
|
91
91
|
if ! command -v micromamba >/dev/null 2>&1; then
|
92
|
-
mkdir micromamba;
|
92
|
+
mkdir -p micromamba;
|
93
93
|
python -c "import requests, bz2, sys; data = requests.get('https://micro.mamba.pm/api/micromamba/{architecture}/1.5.7').content; sys.stdout.buffer.write(bz2.decompress(data))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
|
94
94
|
export PATH=$PATH:$(pwd)/micromamba;
|
95
95
|
if ! command -v micromamba >/dev/null 2>&1; then
|
@@ -253,7 +253,33 @@ class Micromamba(object):
|
|
253
253
|
try:
|
254
254
|
output = json.loads(e.output)
|
255
255
|
err = []
|
256
|
+
v_pkgs = ["__cuda", "__glibc"]
|
256
257
|
for error in output.get("solver_problems", []):
|
258
|
+
# raise a specific error message for virtual package related errors
|
259
|
+
match = next((p for p in v_pkgs if p in error), None)
|
260
|
+
if match is not None:
|
261
|
+
vpkg_name = match[2:]
|
262
|
+
# try to strip version from error msg which are of the format:
|
263
|
+
# nothing provides <__vpkg> >=2.17,<3.0.a0 needed by <pkg_name>
|
264
|
+
try:
|
265
|
+
vpkg_version = error[
|
266
|
+
len("nothing provides %s " % match) : error.index(
|
267
|
+
" needed by"
|
268
|
+
)
|
269
|
+
]
|
270
|
+
except ValueError:
|
271
|
+
vpkg_version = None
|
272
|
+
raise MicromambaException(
|
273
|
+
"Please set the environment variable CONDA_OVERRIDE_{var} to a specific version{version} of {name}.\n"
|
274
|
+
"Here is an example of supplying environment variables through the command line -\n\n"
|
275
|
+
"CONDA_OVERRIDE_{var}=<{name}-version> python flow.py <args>".format(
|
276
|
+
var=vpkg_name.upper(),
|
277
|
+
version=(
|
278
|
+
"" if not vpkg_version else (" (%s)" % vpkg_version)
|
279
|
+
),
|
280
|
+
name=vpkg_name,
|
281
|
+
),
|
282
|
+
)
|
257
283
|
err.append(error)
|
258
284
|
raise MicromambaException(
|
259
285
|
msg.format(
|
@@ -6,56 +6,11 @@ import importlib
|
|
6
6
|
import functools
|
7
7
|
import tempfile
|
8
8
|
|
9
|
-
from subprocess import CalledProcessError
|
10
9
|
from typing import Optional, Dict, ClassVar
|
11
10
|
|
12
11
|
from metaflow.exception import MetaflowNotFound
|
13
|
-
from metaflow.runner.subprocess_manager import
|
14
|
-
from metaflow.runner.utils import
|
15
|
-
|
16
|
-
|
17
|
-
def handle_timeout(
|
18
|
-
tfp_runner_attribute, command_obj: CommandManager, file_read_timeout: int
|
19
|
-
):
|
20
|
-
"""
|
21
|
-
Handle the timeout for a running subprocess command that reads a file
|
22
|
-
and raises an error with appropriate logs if a TimeoutError occurs.
|
23
|
-
|
24
|
-
Parameters
|
25
|
-
----------
|
26
|
-
tfp_runner_attribute : NamedTemporaryFile
|
27
|
-
Temporary file that stores runner attribute data.
|
28
|
-
command_obj : CommandManager
|
29
|
-
Command manager object that encapsulates the running command details.
|
30
|
-
file_read_timeout : int
|
31
|
-
Timeout for reading the file.
|
32
|
-
|
33
|
-
Returns
|
34
|
-
-------
|
35
|
-
str
|
36
|
-
Content read from the temporary file.
|
37
|
-
|
38
|
-
Raises
|
39
|
-
------
|
40
|
-
RuntimeError
|
41
|
-
If a TimeoutError occurs, it raises a RuntimeError with the command's
|
42
|
-
stdout and stderr logs.
|
43
|
-
"""
|
44
|
-
try:
|
45
|
-
content = read_from_file_when_ready(
|
46
|
-
tfp_runner_attribute.name, command_obj, timeout=file_read_timeout
|
47
|
-
)
|
48
|
-
return content
|
49
|
-
except (CalledProcessError, TimeoutError) as e:
|
50
|
-
stdout_log = open(command_obj.log_files["stdout"]).read()
|
51
|
-
stderr_log = open(command_obj.log_files["stderr"]).read()
|
52
|
-
command = " ".join(command_obj.command)
|
53
|
-
error_message = "Error executing: '%s':\n" % command
|
54
|
-
if stdout_log.strip():
|
55
|
-
error_message += "\nStdout:\n%s\n" % stdout_log
|
56
|
-
if stderr_log.strip():
|
57
|
-
error_message += "\nStderr:\n%s\n" % stderr_log
|
58
|
-
raise RuntimeError(error_message) from e
|
12
|
+
from metaflow.runner.subprocess_manager import SubprocessManager
|
13
|
+
from metaflow.runner.utils import handle_timeout
|
59
14
|
|
60
15
|
|
61
16
|
def get_lower_level_group(
|
@@ -209,7 +164,7 @@ class TriggeredRun(object):
|
|
209
164
|
elif callable(v):
|
210
165
|
setattr(self, k, functools.partial(v, self))
|
211
166
|
else:
|
212
|
-
setattr(self
|
167
|
+
setattr(self, k, v)
|
213
168
|
|
214
169
|
def wait_for_run(self, timeout=None):
|
215
170
|
"""
|
@@ -287,7 +242,7 @@ class DeployedFlow(object):
|
|
287
242
|
elif callable(v):
|
288
243
|
setattr(self, k, functools.partial(v, self))
|
289
244
|
else:
|
290
|
-
setattr(self
|
245
|
+
setattr(self, k, v)
|
291
246
|
|
292
247
|
|
293
248
|
class DeployerImpl(object):
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import importlib
|
2
2
|
import os
|
3
3
|
import sys
|
4
|
+
import json
|
4
5
|
import tempfile
|
5
6
|
|
6
|
-
from subprocess import CalledProcessError
|
7
7
|
from typing import Dict, Iterator, Optional, Tuple
|
8
8
|
|
9
9
|
from metaflow import Run, metadata
|
10
10
|
|
11
|
-
from .utils import
|
11
|
+
from .utils import handle_timeout, clear_and_set_os_environ
|
12
12
|
from .subprocess_manager import CommandManager, SubprocessManager
|
13
13
|
|
14
14
|
|
@@ -102,16 +102,19 @@ class ExecutingRun(object):
|
|
102
102
|
for executing the run.
|
103
103
|
|
104
104
|
The return value is one of the following strings:
|
105
|
+
- `timeout` indicates that the run timed out.
|
105
106
|
- `running` indicates a currently executing run.
|
106
107
|
- `failed` indicates a failed run.
|
107
|
-
- `successful` a successful run.
|
108
|
+
- `successful` indicates a successful run.
|
108
109
|
|
109
110
|
Returns
|
110
111
|
-------
|
111
112
|
str
|
112
113
|
The current status of the run.
|
113
114
|
"""
|
114
|
-
if self.command_obj.
|
115
|
+
if self.command_obj.timeout:
|
116
|
+
return "timeout"
|
117
|
+
elif self.command_obj.process.returncode is None:
|
115
118
|
return "running"
|
116
119
|
elif self.command_obj.process.returncode != 0:
|
117
120
|
return "failed"
|
@@ -271,28 +274,22 @@ class Runner(object):
|
|
271
274
|
|
272
275
|
# It is thus necessary to set them to correct values before we return
|
273
276
|
# the Run object.
|
274
|
-
try:
|
275
|
-
# Set the environment variables to what they were before the run executed.
|
276
|
-
clear_and_set_os_environ(self.old_env)
|
277
277
|
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
if stderr_log.strip():
|
294
|
-
error_message += "\nStderr:\n%s\n" % stderr_log
|
295
|
-
raise RuntimeError(error_message) from e
|
278
|
+
content = handle_timeout(
|
279
|
+
tfp_runner_attribute, command_obj, self.file_read_timeout
|
280
|
+
)
|
281
|
+
content = json.loads(content)
|
282
|
+
pathspec = "%s/%s" % (content.get("flow_name"), content.get("run_id"))
|
283
|
+
|
284
|
+
# Set the environment variables to what they were before the run executed.
|
285
|
+
clear_and_set_os_environ(self.old_env)
|
286
|
+
|
287
|
+
# Set the correct metadata from the runner_attribute file corresponding to this run.
|
288
|
+
metadata_for_flow = content.get("metadata")
|
289
|
+
metadata(metadata_for_flow)
|
290
|
+
|
291
|
+
run_object = Run(pathspec, _namespace_check=False)
|
292
|
+
return ExecutingRun(self, command_obj, run_object)
|
296
293
|
|
297
294
|
def run(self, **kwargs) -> ExecutingRun:
|
298
295
|
"""
|