Exemplo n.º 1
0
void descheduleWorkUnit(char const * wuid)
{
    Owned<IWorkUnitFactory> factory = getWorkUnitFactory();
    Owned<IWorkUnit> wu = factory->updateWorkUnit(wuid);
    if(wu)
        wu->deschedule();
}
Exemplo n.º 2
0
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();

}