summaryrefslogtreecommitdiffstats
path: root/SCons/Taskmaster/Job.py
Commit message (Collapse)AuthorAgeFilesLines
* Updates on Value nodesMats Wichmann2024-03-121-3/+2
| | | | | | | | | | | | | | Some doc changes. E2E tests cleaned up a bit. Before merge: TODO: second half of manpage example doesn't work. Also: should test give SCons.Node.Value.Value as factory, or just Value? (remove new import if the latter). SCons.Node.Value.Value and SCons.Environment.Value are not the same thing. Signed-off-by: Mats Wichmann <mats@linux.com>
* Only create new workers when current workers are saturated with jobsAndrew Morrow2024-02-131-1/+2
|
* Only add worker threads as necesaryAndrew Morrow2024-02-081-13/+22
|
* review feedback: legacysched to legacy_schedAndrew Morrow2024-01-201-2/+2
|
* Use main thread as worker if -j1 with NewParallelAndrew Morrow2024-01-191-9/+11
|
* wipAndrew Morrow2024-01-191-5/+6
|
* No locks needed for -j1 with NewParallelAndrew Morrow2024-01-191-3/+27
|
* fixupAndrew Morrow2024-01-191-1/+1
|
* Let the main thread participate in NewParallelAndrew Morrow2024-01-191-1/+2
|
* Always use NewParallel with tm_v2 flagAndrew Morrow2024-01-191-24/+14
|
* threading is always availableAndrew Morrow2024-01-191-460/+449
|
* Add some cheap return and parameter annotationsMats Wichmann2023-05-011-21/+21
| | | | | | | | | | | | | | | | | Use: https://github.com/JelleZijlstra/autotyping to add "safe" return annotations. Where a parameter has a default value that is an obvious scalar type (bool, int, str, etc.) add those annotations as well. Also fixed two small bugs that popped up when sanity-checking with mypy. One in FortranCommon, where a return had been previously annotated to be a tuple of Action, which should be ActionBase - Action is the factory function, not the base class. The other was a typo in the error raised in _add_cppdefines - the message was formatted with the value of "define" which should have been "defines". Signed-off-by: Mats Wichmann <mats@linux.com>
* [ci skip] Add pylint annotation and comment regarding importing GetOption in ↵William Deegan2022-12-051-0/+4
| | | | a method instead of at top of file. (Thanks mwichmann for providing feedback and pylint syntax)
* modernize JobTests to just use unittest.main(), fix JobTests to have a ↵William Deegan2022-12-041-1/+2
| | | | reasonable value for OptionsParser.values.experimental, so Jobs doesn't crash when referencing it and getting a None instead of an iterable
* Added --experimental=tm_v2 which switches to use Andrew Morrow's new ↵William Deegan2022-12-041-3/+4
| | | | ParallelJob implementation. WHich should scale much better for highly parallel builds
* Added TestCommon.must_match_file() function. Updated test for ↵William Deegan2022-12-041-14/+15
| | | | --taskmastertracefor (NewParallel/LegacyParallel Jobs). Now uses golden files to compare expected output and output files
* Remove extraneous XXX from NewParallel logging. Added SCONS_NEW_PARALLEL ↵William Deegan2022-11-171-14/+18
| | | | shell environment variable to turn on NewParallel. This is a temporary mechanism to enable NewParallel
* logging working in NewParallel, but changed to be default. Need to figure ↵William Deegan2022-11-161-20/+17
| | | | out how to switch from one to the other
* Initial logic to add logging to ExperimentalParallel job class. Not quite ↵William Deegan2022-10-271-13/+48
| | | | working
* [ci skip] Resolve outstanding pep8 errors (fix sider complaints and more)William Deegan2022-10-211-12/+13
|
* Restore original Parallel as the default and rename new parallel as experimentalAndrew Morrow2022-10-131-15/+14
|
* Implement new parallel schedulerAndrew Morrow2022-10-131-1/+265
|
* move Taskmaster and Jobs to SCons.TaskmasterWilliam Deegan2022-10-121-0/+439