Check if process running in job queue

BatchPatch Forums Home Forums BatchPatch Support Forum Check if process running in job queue

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #13550
    ExhaustedTech
    Participant

    Hi! Is there a way to add to the queue to check if a process is running before proceeding? When pushing application updates, we need to make sure the app isn’t running or most of them error out or cause an issue if it’s open. I can’t seem to find it in the list

    #13551
    doug
    Moderator

    This functionality does not currently exist built-in to the app, but we are considering it for a future version. In the meantime you can still accomplish this in BatchPatch by integrating a custom script. We have a blog posting that shows exactly how to do this with a service, but the script could be modified slightly to suit your needs and search for a process instead of a service.
    BatchPatch Custom Script Integration – Wait for Service to be Running Before Proceeding to Next Step in Job Queue

    #13552
    ExhaustedTech
    Participant

    Ok thanks. I’ll see if I can figure out how to modify it

    #13554
    doug
    Moderator

    Let me know how it goes.

    #13555
    ExhaustedTech
    Participant

    No, unfortunately I have no clue how to modify this. I’ll just have to wait until it is added as an option, hopefully. In the meantime, I’ll just use the Check Running Processes as often as possible and push it when I see the process isn’t running. Thanks!

    #13556
    doug
    Moderator

    We’ll look at making a similar tutorial soon that covers the use case that you are asking about.

    #13557
    ExhaustedTech
    Participant

    That would be great, thank you!

    #13975
    ExhaustedTech
    Participant

    If you do integrate this, it would be great to have an option to kill a process by name as part of the job queue

    #13976
    doug
    Moderator

    For now you can create a remote command and add that to your job queue. The syntax of the command would be:

    TASKKILL /F /IM "hungProcess.exe"

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.