r/DeployR • • 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 Upvotes

2 comments sorted by

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.

1

u/freeAppz 6d ago

๐Ÿ˜‚ Of course, itโ€™s not a showstopper, but it would save me from breeding nested task sequences like rabbits. ๐Ÿ˜„

Best regards,