void descheduleWorkUnit(char const * wuid) { Owned<IWorkUnitFactory> factory = getWorkUnitFactory(); Owned<IWorkUnit> wu = factory->updateWorkUnit(wuid); if(wu) wu->deschedule(); }
void descheduleWorkUnit(char const * wuid, ISecManager & secmgr, ISecUser & secuser) { Owned<IWorkUnitFactory> factory = getWorkUnitFactory(); Owned<IWorkUnit> wu = factory->updateWorkUnit(wuid, &secmgr, &secuser); if(wu) wu->deschedule(); }