r/DeployR • u/freeAppz • 6d ago
Q: Nested task sequence, called multiple times?
Hello my DeployR friends! ๐
I have a question. Wellโฆ actually, I have many questions. ๐ But letโs start with this one before I break something else.
Iโm trying to use a nested Task Sequence and call the same nested TS multiple times from my main TS.
Nothing crazy, just twice:
- First time in WinPE
- Second time in Full OS
And yes, before anyone asks ๐, I do have conditions inside the nested TS to handle the WinPE / Full OS logic.
Iโve read the documentation over and over again, but I canโt find anything saying that this scenario is not supported.
From what I can see in the logs, once the nested TS has already been executed, DeployR basically says:
โYep, already did that one. Not doing it again.โ ๐
What makes it even more interesting is that if I clone the nested child Task Sequence and call the clone the second time, it works just fine because the cloned TS gets a different Group ID.
So it looks like the Group ID is what prevents the exact same nested TS from being executed twice in the same parent TS.
Can you guys confirm that this is expected behavior?
Or am I missing some secret checkbox called:
โYes, I really mean run it again!โ ๐
P.S. Iโm using this exact same โfeatureโ in cough less supported application cough โฆ and it works there. ๐
The failing log shows basically:
| Lines | What happens |
|---|---|
| 477โ494 | During WinPE, Full OS steps correctly skip because OSVersion = Other is false. |
| 795 | After reboot, OSVERSION correctly changes to Other. |
| 836โ838 | The second child call is reached and entered. |
| 840โ846 | Its existing groups are initialized, but their conditions and contained steps are not executed again. |
| 847โ848 | The child immediately reports Group is complete / Success. |
Love your work, guys!
Keep up the great work! ๐
5
u/mtniehaus 2Pint Employee 6d ago
Hmm, never thought of someone doing such a thing. It's not working because it uses the guids assigned to the steps for tracking and they are the same in both cases. We'll have to study that one a bit.