Deployment and Imaging Group

 View Only
Expand all | Collapse all

How can i add conditions to this job?

Jump to Best Answer
  • 1.  How can i add conditions to this job?

    Posted Jan 30, 2018 01:31 PM
      |   view attached

    Hello everyone,

    I will generate this work to multiple teams where it consists of the following:

    1.- Stop a service
    2.- Add a file to a path C: \
    3.- start the service

    I want the work to have a single condition to avoid possible failures, if the task "1" does not stop it the service correctly does not affect the operation of task "3" that is to start the service.

    Thank you very much for your comments.

    Attached screen.

  • 2.  RE: How can i add conditions to this job?
    Best Answer

    Posted Jan 31, 2018 01:25 PM

    If you are looking to enforce stopping the service in step 1, I would script it out. Stop the service / wait (pause) for x time / check to see if service is still running as a process and if so taskkill the process.

    However, I believe the checkbox 'fail job if this task fails' will perform what  you want. Check the box in step 1 and if that task fails, the whole job will fail - including the file copy.