Skip to content

Commit

Permalink
feat(docs): post on Durable Execution. (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
destifo authored Aug 30, 2024
1 parent 7c64c45 commit 1c740bc
Show file tree
Hide file tree
Showing 12 changed files with 1,037 additions and 5 deletions.
3 changes: 3 additions & 0 deletions examples/metatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ typegates:
BASIC_andim: hunter2
func-gql:
POSTGRES: "postgresql://postgres:password@localhost:5432/db?schema=func_gql"
temporal:
HOST: "http://localhost:7233"
NAMESPACE: "default"

prd:
url: https://demo.metatype.dev
Expand Down
5 changes: 2 additions & 3 deletions examples/typegraphs/temporal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
)
def temporal(g: Graph):
public = Policy.public()
temporal = TemporalRuntime(
"<name>", "<host_secret>", namespace_secret="<ns_secret>"
)
# set `HOST` and `NAMESPACE` under secrets inside metatype.yaml
temporal = TemporalRuntime("<name>", "HOST", namespace_secret="NAMESPACE")

workflow_id = os.getenv("ID_FROM_ENV")
arg = t.struct({"some_field": t.string()})
Expand Down
5 changes: 3 additions & 2 deletions examples/typegraphs/temporal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ typegraph(
},
(g: any) => {
const pub = Policy.public();
// set `HOST` and `NAMESPACE` under secrets inside metatype.yaml
const temporal = new TemporalRuntime({
name: "<name>",
hostSecret: "<host_secret>",
namespaceSecret: "<ns_secret>",
hostSecret: "HOST",
namespaceSecret: "NAMESPACE",
});

const workflow_id = getEnvVariable("ID_FROM_ENV");
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
436 changes: 436 additions & 0 deletions website/blog/2024-08-27-distributed-execution-flow-paradigms/index.mdx

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c740bc

Please sign in to comment.