{
  "id": "run",
  "title": "Run",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/run/",
  "summary": "Runs the pipeline of functions immediately.",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-04-22T11:55:45+02:00",
  "page_type": "content",
  "content_hash": "791c741003eeef9a0704e8640ef36aee5f03804e222e8bb56fe4eaaebb141781",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "[code example]\n\nRuns the pipeline of functions immediately upon execution. It will only run once."
    },
    {
      "id": "parameters",
      "title": "Parameters",
      "role": "parameters",
      "text": "| Name | Type | Description |\n|------|------|-------------|\n| collect | boolean | Whether or not to collect the results from the entire cluster before returning them |\n| jsonSerialize | boolean | Whether or not to serialize the results to JSON before returning them |"
    },
    {
      "id": "returns",
      "title": "Returns",
      "role": "returns",
      "text": "None"
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "overview-ex0",
      "language": "java",
      "code": "public void run()\n\npublic void run​(boolean jsonSerialize, boolean collect)",
      "section_id": "overview"
    },
    {
      "id": "example-ex0",
      "language": "java",
      "code": "GearsBuilder.CreateGearsBuilder(reader).run();",
      "section_id": "example"
    }
  ]
}
