void descheduleAllWorkUnits(ISecManager & secmgr, ISecUser & secuser)
{
    Owned<IWorkUnitFactory> factory = getWorkUnitFactory();
    factory->descheduleAllWorkUnits(&secmgr, &secuser);
}
void descheduleAllWorkUnits()
{
    Owned<IWorkUnitFactory> factory = getWorkUnitFactory();
    factory->descheduleAllWorkUnits();
}