-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for group tasks containing other group tasks #170
Comments
A group task is actually implemented internally just using I would like to see some other ways to categorize tasks. maybe using tags... I am gonna close this but feel free to re-open if you have a more concrete idea and implementation. thanks |
@schettino72 I don't seem to be able to re-open, but there is problem with the approach you mentioned.
I am not sure I agree with the notion that Hierarchy tasks don't make sense. We have several complex jobs that have complex sub-tasks, that make sense to make those sub-tasks. Our build system, is actually doing multiple "top-level" tasks that are mutually exclusive and it is nice to have the hierarchy so a user can see what tasks go with each "command. If you don't feel it is worth supporting then that is fine. I plan on fixing it for our company. |
ok. re-opening it... 😁 It would be great if you provide a full running example with dummy actions. I would be definitely interested in integrating your changes if it works well. Feel free to ask me questions, although i will not have much time in near future. |
Currently the changes will not be public, we are doing an Application on-top of Doit and so I was just going to handle this in my task loader, but we would prefer to make it part of the baseline code so I once I get things worked out, I will put something out on the public side for evaluation and updates. |
I will close this. I think I understand now what you were referring to. I was able to write a generator that creates multiple groups that give me the control I desire. |
I am currently developing a build system where I could greatly benefit from multi-layer sub-tasking/group tasks.
The build system will have several top level "phases" that are mutually exclusive so I would like to keep the tasks grouped in that manner. One example of this would be something like the following:
sim
sim:compile
sim:compile:lib1
sim:compile:lib1:file1...sim:compile:lib1:fileN (contains action)
sim:compile:libN
sim:compile:libN:file1...sim:compile:libN:fileN (contains action)
sim:elaborate (contains action)
sim:run (contains action)
Sim is the top level group task, while sim:compile is a group task and sim:compile:lib(*) are embedded group tasks.
I could not figure out how to do this yielding dicts.
One reason I would like this grouping is so that "sim:elaborate" could use result_dep('sim:compile') that way if any library has to be recompiled, the elaborate step is re-executed.
result_dep() would also have to be updated to walk down through all groups to get a list of all tasks.
The text was updated successfully, but these errors were encountered: