Merge pull request #2577 from robgraeber/patch-1

Fix swarm settings config placeholders
This commit is contained in:
Mauricio Siu
2025-10-05 00:04:24 -06:00
committed by GitHub

View File

@@ -373,9 +373,9 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
language="json" language="json"
placeholder={`{ placeholder={`{
"Test" : ["CMD-SHELL", "curl -f http://localhost:3000/health"], "Test" : ["CMD-SHELL", "curl -f http://localhost:3000/health"],
"Interval" : 10000, "Interval" : 10000000000,
"Timeout" : 10000, "Timeout" : 10000000000,
"StartPeriod" : 10000, "StartPeriod" : 10000000000,
"Retries" : 10 "Retries" : 10
}`} }`}
className="h-[12rem] font-mono" className="h-[12rem] font-mono"
@@ -428,9 +428,9 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
language="json" language="json"
placeholder={`{ placeholder={`{
"Condition" : "on-failure", "Condition" : "on-failure",
"Delay" : 10000, "Delay" : 10000000000,
"MaxAttempts" : 10, "MaxAttempts" : 10,
"Window" : 10000 "Window" : 10000000000
} `} } `}
className="h-[12rem] font-mono" className="h-[12rem] font-mono"
{...field} {...field}
@@ -550,9 +550,9 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
language="json" language="json"
placeholder={`{ placeholder={`{
"Parallelism" : 1, "Parallelism" : 1,
"Delay" : 10000, "Delay" : 10000000000,
"FailureAction" : "continue", "FailureAction" : "continue",
"Monitor" : 10000, "Monitor" : 10000000000,
"MaxFailureRatio" : 10, "MaxFailureRatio" : 10,
"Order" : "start-first" "Order" : "start-first"
}`} }`}
@@ -608,9 +608,9 @@ export const AddSwarmSettings = ({ id, type }: Props) => {
language="json" language="json"
placeholder={`{ placeholder={`{
"Parallelism" : 1, "Parallelism" : 1,
"Delay" : 10000, "Delay" : 10000000000,
"FailureAction" : "continue", "FailureAction" : "continue",
"Monitor" : 10000, "Monitor" : 10000000000,
"MaxFailureRatio" : 10, "MaxFailureRatio" : 10,
"Order" : "start-first" "Order" : "start-first"
}`} }`}