From 70982e0491206c6174df3af6ec33b872e1e7e3ce Mon Sep 17 00:00:00 2001 From: Sean Reilly Date: Mon, 6 Jan 2025 11:46:21 -0800 Subject: [PATCH 1/2] doc updates for go --- frontend/docs/pages/home/features/concurrency/round-robin.mdx | 4 ++-- frontend/docs/pages/home/features/errors-and-logging.mdx | 4 ++-- frontend/docs/pages/sdks/typescript-sdk/logging.mdx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/docs/pages/home/features/concurrency/round-robin.mdx b/frontend/docs/pages/home/features/concurrency/round-robin.mdx index 30b519c3a..c6ab87655 100644 --- a/frontend/docs/pages/home/features/concurrency/round-robin.mdx +++ b/frontend/docs/pages/home/features/concurrency/round-robin.mdx @@ -97,7 +97,7 @@ err = w.RegisterWorkflow( &worker.WorkflowJob{ Name: "concurrency-limit-per-user", On: worker.Events("concurrency-test-event"), - Description: "This limits concurrency to 1 run at a time per user.", + Description: "This limits concurrency to 10 run at a time per user.", Concurrency: worker.Concurrency(getConcurrencyKey).MaxRuns(10).LimitStrategy(types.GroupRoundRobin), Steps: []*worker.WorkflowStep{ // your steps here... @@ -190,7 +190,7 @@ err = w.RegisterWorkflow( &worker.WorkflowJob{ Name: "concurrency-limit-per-user", On: worker.Events("concurrency-test-event"), - Description: "This limits concurrency to 1 run at a time per user.", + Description: "This limits concurrency to 10 run at a time per user.", Concurrency: worker.Concurrency(getConcurrencyKey).MaxRuns(10).LimitStrategy(types.GroupRoundRobin), Steps: []*worker.WorkflowStep{ // your steps here... diff --git a/frontend/docs/pages/home/features/errors-and-logging.mdx b/frontend/docs/pages/home/features/errors-and-logging.mdx index 8c97d3f03..c06b7013b 100644 --- a/frontend/docs/pages/home/features/errors-and-logging.mdx +++ b/frontend/docs/pages/home/features/errors-and-logging.mdx @@ -88,9 +88,9 @@ err = w.RegisterWorkflow( Description: "This is an example workflow with logging.", Steps: []*worker.WorkflowStep{ worker.Fn(func(ctx worker.HatchetContext) (result *stepOneOutput, err error) { - ctx.log("Starting step execution") + ctx.Log("Starting step execution") result := someOperation() - ctx.log(fmt.Sprintf("Operation result: %v", result)) + ctx.Log(fmt.Sprintf("Operation result: %v", result)) }).SetName("step-one"), }, diff --git a/frontend/docs/pages/sdks/typescript-sdk/logging.mdx b/frontend/docs/pages/sdks/typescript-sdk/logging.mdx index a795207c2..6085b94a0 100644 --- a/frontend/docs/pages/sdks/typescript-sdk/logging.mdx +++ b/frontend/docs/pages/sdks/typescript-sdk/logging.mdx @@ -14,7 +14,7 @@ const workflow: Workflow = { name: "logger-step1", run: async (ctx) => { for (let i = 0; i < 1000; i++) { - ctx.log(`log message ${i}`); + ctx.Log(`log message ${i}`); } return { step1: "completed step run" }; From 7e945954d3b5f7bd154fc8beb82de7ec12bfcec1 Mon Sep 17 00:00:00 2001 From: Sean Reilly Date: Mon, 13 Jan 2025 16:05:58 -0800 Subject: [PATCH 2/2] roll it back for TS --- frontend/docs/pages/sdks/typescript-sdk/logging.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/docs/pages/sdks/typescript-sdk/logging.mdx b/frontend/docs/pages/sdks/typescript-sdk/logging.mdx index 6085b94a0..a795207c2 100644 --- a/frontend/docs/pages/sdks/typescript-sdk/logging.mdx +++ b/frontend/docs/pages/sdks/typescript-sdk/logging.mdx @@ -14,7 +14,7 @@ const workflow: Workflow = { name: "logger-step1", run: async (ctx) => { for (let i = 0; i < 1000; i++) { - ctx.Log(`log message ${i}`); + ctx.log(`log message ${i}`); } return { step1: "completed step run" };