Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc updates for go #1159

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading