Skip to content

Commit

Permalink
Add signpost to users of hera
Browse files Browse the repository at this point in the history
Co-authored-by: Flaviu Vadan <flaviuvadan@gmail.com>
Signed-off-by: Elliot Gunton <egunton@bloomberg.net>
  • Loading branch information
elliotgunton and flaviuvadan committed Mar 8, 2024
1 parent 71abcc1 commit c2c00fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ or
["ideal-for-contribution"](https://github.com/argoproj-labs/hera/issues?q=is%3Aopen+is%3Aissue+label%3Anote%3Aideal-for-contribution).

We also encourage contributions in the form of:
* Adding your organization as a [user of Hera](https://github.com/argoproj-labs/hera/blob/main/USERS.md)!
* Answering questions on [GitHub Discussions](https://github.com/argoproj-labs/hera/discussions) and
[Slack](https://cloud-native.slack.com/archives/C03NRMD9KPY)
* Blog Posts / Social Media featuring Hera
Expand Down
17 changes: 8 additions & 9 deletions examples/workflows/dags/dag_diamond_with_callable_decorators.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
from hera.workflows import (
DAG,
Workflow,
script,
)
from hera.workflows import DAG, Workflow, script


@script(add_cwd_to_sys_path=False, image="python:alpine3.6")
@script(image="python:alpine3.6")
def echo(message):
print(message)


with Workflow(generate_name="dag-diamond-", entrypoint="diamond") as w:
with Workflow(
generate_name="dag-diamond-",
entrypoint="diamond",
) as w:
with DAG(name="diamond"):
A = echo(name="A", arguments={"message": "A"})
B = echo(name="B", arguments={"message": "B"})
C = echo(name="C", arguments={"message": "C"})
D = echo(name="D", arguments={"message": "D"})
A >> [B, C] >> D


0 comments on commit c2c00fb

Please sign in to comment.