{
  "id": "cicd/gradle-daemon-stopped-build",
  "signature": "org.gradle.launcher.daemon.server.DaemonExpirationPeriodicCheck: Daemon will be stopped at the end of the build after running for 3 hours and 30 minutes of idle time",
  "signature_zh": "Gradle守护进程将在构建结束时停止，因为空闲时间已达3小时30分钟",
  "regex": "Daemon will be stopped at the end of the build after running for.*idle time",
  "domain": "cicd",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "Gradle daemon was idle for too long and will be terminated, causing subsequent builds to restart a new daemon and lose cache benefits.",
  "root_cause_type": "generic",
  "root_cause_zh": "Gradle守护进程空闲时间过长将被终止，导致后续构建需重新启动守护进程并丢失缓存优势。",
  "versions": [
    {
      "version": "Gradle 7.6",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Gradle 8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Gradle 8.5",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Simply increasing idle timeout may mask underlying memory issues or long-running CI jobs that should be optimized, and doesn't fix the root cause of long build times.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Disabling the daemon removes caching and warm JVM benefits, making builds significantly slower (up to 50% slower) in CI environments.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a reasonable idle timeout in gradle.properties: org.gradle.daemon.idletimeout=3600000 (1 hour) and ensure CI jobs complete within that window. Also use --build-cache to persist outputs.",
      "success_rate": 0.85,
      "how": "Set a reasonable idle timeout in gradle.properties: org.gradle.daemon.idletimeout=3600000 (1 hour) and ensure CI jobs complete within that window. Also use --build-cache to persist outputs.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run 'gradle --stop' before starting a new build to force a fresh daemon, or configure CI to reuse the same daemon across steps by not exiting the JVM.",
      "success_rate": 0.9,
      "how": "Run 'gradle --stop' before starting a new build to force a fresh daemon, or configure CI to reuse the same daemon across steps by not exiting the JVM.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Set a reasonable idle timeout in gradle.properties: org.gradle.daemon.idletimeout=3600000 (1 hour) and ensure CI jobs complete within that window. Also use --build-cache to persist outputs.",
    "Run 'gradle --stop' before starting a new build to force a fresh daemon, or configure CI to reuse the same daemon across steps by not exiting the JVM."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.gradle.org/current/userguide/gradle_daemon.html",
  "official_doc_section": null,
  "error_code": "GRADLE_DAEMON_IDLE_TIMEOUT",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.75,
  "resolvable": "true",
  "first_seen": "2023-11-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}