Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial runner api #1732

Merged
merged 55 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
90e1aea
initial runner map api
madhur-ob Feb 15, 2024
a8cd6ab
return Run objects
madhur-ob Feb 21, 2024
89cb6eb
WIP: click to method mapping
madhur-ob Mar 2, 2024
723e835
WIP: click to method, adding groups
madhur-ob Mar 2, 2024
1d429de
remove comment
madhur-ob Mar 2, 2024
ef279d1
pass in args and opts correctly
madhur-ob Mar 2, 2024
682f6a0
fix validation for top level params
madhur-ob Mar 2, 2024
37ba90d
restore metaflow_runner.py
madhur-ob Mar 2, 2024
d6fe8ac
handle list in options
madhur-ob Mar 3, 2024
37bb394
fix nargs
madhur-ob Mar 3, 2024
5c255ef
fix issue with validating missing args
madhur-ob Mar 3, 2024
d47cd75
inject flow parameters as well
madhur-ob Mar 3, 2024
7812e58
handle include file
madhur-ob Mar 3, 2024
f958c68
internal click to chaining methods functionality
madhur-ob Mar 4, 2024
86968e6
subprocess manager
madhur-ob Mar 12, 2024
1c3c5bd
simpler subprocess manager
madhur-ob Mar 28, 2024
61623cd
handle SIGINT
madhur-ob Mar 28, 2024
216c366
wait() handles timeout + logs both
madhur-ob Mar 28, 2024
847822d
improved log streaming with ability to resume + stream multiple times
madhur-ob Apr 9, 2024
be5512e
cleanup in context manager, otherwise user is responsible
madhur-ob Apr 9, 2024
4158db0
remove aiofiles
madhur-ob Apr 9, 2024
b7d1083
split into CommandManager and SubprocessManager
madhur-ob Apr 9, 2024
bf04383
return components array instead
madhur-ob Apr 9, 2024
efa8750
remove assert
madhur-ob Apr 9, 2024
cc6d602
add type hints
madhur-ob Apr 9, 2024
9766d0f
return ExecutingRun encapsulating CommandManager and metaflow.Run
madhur-ob Apr 9, 2024
080fbb2
print as string
madhur-ob Apr 16, 2024
8a5a14f
suggested improvements
madhur-ob Apr 16, 2024
04b8811
use correct variable name
madhur-ob Apr 16, 2024
0cfc979
update usage of subprocess manager
madhur-ob Apr 16, 2024
b8ed331
fix flags such as --pylint/--no-pylint
madhur-ob Apr 28, 2024
73935b1
cache loaded modules
madhur-ob Apr 28, 2024
d3f53aa
fix boolean flags
madhur-ob Apr 28, 2024
79aeb4e
remove aiofiles
madhur-ob Apr 28, 2024
b8a47ac
no f-strings
madhur-ob Apr 28, 2024
25f8ace
get run object explicitly
madhur-ob May 1, 2024
33c08c3
new higher level UX
madhur-ob May 2, 2024
bafd29b
typeguard warning for 3.5/3.6 + add profile argument
madhur-ob May 2, 2024
2128a22
default None for profile
madhur-ob May 2, 2024
95e7076
detect early issues
madhur-ob May 6, 2024
1f20019
fix user defined params not being recognised
madhur-ob May 6, 2024
6b67548
kill all descendants
madhur-ob May 6, 2024
a77ba01
do not use f-strings
madhur-ob May 6, 2024
5c8a9aa
suggested changes
madhur-ob May 13, 2024
9a43517
use pkill instead of psutil
madhur-ob May 13, 2024
93dcd5c
minor fix
madhur-ob May 15, 2024
fc0ee63
vendor typeguard
madhur-ob May 15, 2024
471c335
update error message
madhur-ob May 21, 2024
706c00c
remove comma and check in init
madhur-ob May 21, 2024
c387d84
Added docstrings; fixed stubs; moved stuff around
romain-intel May 23, 2024
737d2da
change dir name to runner
madhur-ob May 23, 2024
4363d8f
fix import in test
madhur-ob May 23, 2024
fc1d92e
fix import
madhur-ob May 23, 2024
790e270
add status property to ExecutingRun
madhur-ob May 23, 2024
d661bbc
add docstring for status property
madhur-ob May 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions metaflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ class and related decorators.
# Import data class within tuple_util but not introduce new symbols.
from . import tuple_util

# Runner API
if sys.version_info >= (3, 7):
from .runner.metaflow_runner import Runner

__version_addl__ = []
_ext_debug("Loading top-level modules")
for m in _tl_modules:
Expand Down
13 changes: 13 additions & 0 deletions metaflow/_vendor/importlib_metadata.LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2017-2019 Jason R. Coombs, Barry Warsaw

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading
Loading