Automic Workload Automation

  • 1.  Is there a way to quit a Remote Task Manager with a script command?

    Posted Mar 12, 2019 09:17 AM

    Hi all,

     

    is there a way to quit a Remote Task Manager with a script command?

     

    Does anyone know that? I can't find something in the docu or in another community-thread.



  • 2.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Mar 12, 2019 05:51 PM

    If on Windows, and you don't mind using the giant hammer approach, I suppose you could use PowerShell Invoke-Command to run a script on the target server and have that script run the Stop-Service command.



  • 3.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Mar 13, 2019 03:35 AM


  • 4.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Mar 13, 2019 03:42 AM

    Hi

    as its an executable object - what about CANCEL_UC_OBJECT ?

     

    https://docs.automic.com/documentation/webhelp/english/AWA/12.2/DOCU/12.2/AWA%20Guides/help.htm#Script/Reference/CANCEL_… 

     

    cheers, Wolfgang



  • 5.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Mar 13, 2019 03:52 AM

    Hello,

    This is one possibility, but if you quit JOBQ, it will wait for the subtasks to complete. We would be glad if we could realize this behavior with a script.

    If there is no other option, we will try CANCEL_UC_OBJECT.



  • 6.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Apr 04, 2019 02:48 PM

    CANCEL_UC_OBJECT or DEACTIVATE_UC_OBJECT will work.  Just need to get the runid of the RemoteTaskManager as it is kicked off.  Simple enough with the GET_UC_OBJECT_NR.  

     

    The following would be kicked off in the Child Post Process tab.

    : SET &RC# = GET_UC_OBJECT_NR(JOBQ.PS.PROCESSREQUEST.NEW.1)
    : SET &STATUS# = CANCEL_UC_OBJECT(&RC#,"ENDED_CANCEL")

     

    Can also use ENDED_OK and ENDED_TIMEOUT for the 2nd parameter.



  • 7.  Re: Is there a way to quit a Remote Task Manager with a script command?

    Posted Apr 06, 2019 09:36 AM

    To be kind with the executing process in the Queue, perhaps you could use the MODIFY_SYSTEM command to stop the Queue properly and avoid new activiation of objects in the Queue first .....

     

    Using CANCEL_UC_OBJECT on a Queue can have some side effects on the activated objets and deactivation in the activty window (sorry Process Monitorring view ).