MCPcopy Create free account
hub / github.com/FastLED/FastLED / default_fbuild_sketch_jobs

Function default_fbuild_sketch_jobs

ci/util/fbuild_runner.py:167–175  ·  view source on GitHub ↗

Default stage-2 parallelism for batched ``fbuild`` sketch builds.

()

Source from the content-addressed store, hash-verified

165
166
167def default_fbuild_sketch_jobs() -> int:
168 """Default stage-2 parallelism for batched ``fbuild`` sketch builds."""
169 env_override = _get_env_job_count("FASTLED_SKETCH_JOBS")
170 if env_override is not None:
171 return env_override
172 cpus = cpu_count()
173 if os.environ.get("GITHUB_ACTIONS") == "true":
174 return min(cpus, 2)
175 return cpus
176
177
178def _fbuild_supports_subcommand(subcommand: str) -> bool:

Callers 1

Calls 3

cpu_countFunction · 0.90
_get_env_job_countFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected