Skip to content

Commit

Permalink
doc updates for go (#1159)
Browse files Browse the repository at this point in the history
* doc updates for go

* roll it back for TS
  • Loading branch information
reillyse authored Jan 14, 2025
1 parent 75657a1 commit 5ff4516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/docs/pages/home/features/concurrency/round-robin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down Expand Up @@ -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...
Expand Down
4 changes: 2 additions & 2 deletions frontend/docs/pages/home/features/errors-and-logging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
},
Expand Down

0 comments on commit 5ff4516

Please sign in to comment.