Hi,
I'm creating a setup where the end user can choose to use LocalScheduler, or DeadlineScheduler via toggle option. Obviously I could approach this choice a number of ways but I just wanted to ask if there is a "best" way.
Complicating things slightly is that a few of the TOPs have per-node Scheduler overrides to allow me to use Deadline's grouping (see separate thread) options.
One approach is to use expressions with some if: statements that look at the toggle, and set the Default scheduler appropriately, but also "clear" the per-TOP Scheduler overrides if "LocalScheduler" is selected.
Alternatively, I can put in Switch TOPs and duplicate the nodes that require the overrides of the Deadline Scheduler and switch them out as needed.
In both cases, I don't see an alternative to an expression in the Default Scheduler of the TOP network itself.
Have I missed anything? I can get my work done with any of these, and I lean towards the Switch TOP simply because the network is clearer to parse (i.e. no expressions tucked away unexpectedly) however thought I'd ask.
18.5.462 Win 10 Py 3
Cheers,
Peter B