-
Notifications
You must be signed in to change notification settings - Fork 88
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
Remove the dependency on Metaflow #82 #89
Conversation
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
Signed-off-by: Thomas Druez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
""" | ||
Indent each line of the provided `text`. | ||
""" | ||
return sep.join(" " * by + line for line in text.split(sep)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be a job for the stdlib textwrap? https://docs.python.org/3/library/textwrap.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, thanks for the tip.
if exitcode == 0: | ||
return True | ||
return False | ||
|
||
|
||
def pipeline_graph_dot(pipeline_class, fontname="Helvetica", shape="record"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if in the future we could eschew using dot
at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get rid of the feature now we have a way to visualize Pipeline in the UI.
|
||
self.stdout.write(f"Pipeline {run.pipeline} run in progress...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is self.stdout
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the default Django management command API https://docs.djangoproject.com/en/3.1/howto/custom-management-commands/#module-django.core.management
|
||
if __name__ == "__main__": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are missing out the direct execution of a pipeline, but I will not miss this at all. A proper managed CLI is better.
|
||
class DoNothing(Pipeline): | ||
""" | ||
A pipeline that does nothing, in 2 steps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Thomas Druez <[email protected]>
BTW, we may need to update the documentation accordingly? |
@pombredanne the only reference to Metaflow in the docs is this one:
|
No description provided.