stopping job for next run RRS feed

  • Question

  • we have a win scheduled job which runs daily. This job runs an etl and if the etl fails then it records the failure and runs the task again next day.

    we want to restrict this so that if the etl fails then next day the task should not run again. 

    I think there is an option in scheduler to restart program if it fails, but i would like to see viceversa.

    Friday, January 23, 2015 1:16 PM

All replies

  • I suppose you are talking about windows scheduled job instead of windows HPC job.

    For your issue, you can catch your failure in your job and configure the job not to run again.

    Qiufang Shi

    Tuesday, January 27, 2015 8:34 AM
  • yes , this is windows scheduler jobs. But I want to do it via powershell script.

    The script will check if the job X failed. if failed then the job will be disabled by script.

    Thursday, January 29, 2015 11:57 AM