Skip to content

Commit

Permalink
DSL - return self for .after() (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
IronPan authored and k8s-ci-robot committed Dec 1, 2018
1 parent 55e39ea commit 9d38f71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/python/kfp/dsl/_container_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def __init__(self, name: str, image: str, command: str=None, arguments: str=None
def after(self, op):
"""Specify explicit dependency on another op."""
self.dependent_op_names.append(op.name)
return self

def _validate_memory_string(self, memory_string):
"""Validate a given string is valid for memory request or limit."""
Expand Down

0 comments on commit 9d38f71

Please sign in to comment.