locked
Windows Azure Scheduler - Setting Job retry attempts to 0 RRS feed

  • Question

  • Hello,

         I would like to set the retry attempts of a job which currently has a retry attempt of 5 down to 0 using the scheduler API, I am trying to use the below request body using retryPolicy and retryCount=0. But it does not seem to make any changes to the job. When I tried to look for documentation, I could not find any that talks about retry logic. Please assist.

    {
        "startTime": "2014-03-09T12:08:00-08:00",
        "action":
        {
            "type": "http",
            "request":
            {
                "uri": "http://xyz.cloudapp.net/api/xyz/5",
                "method": "GET",
                "headers":
                {
                    "Content-Type": "text/plain"
                }
            },
         },
     
        "recurrence":
        {
            "frequency": "minute",
            "interval": 5,
            "endTime":"2015-04-04T08:00:00Z"
        },
        "state": "enabled",
       "retryPolicy":
        {
         "retryCount":0
        }
    }

    Thanks



    Friday, March 14, 2014 7:08 AM

Answers

  • try the following:

       "retryPolicy":
        {

         "retryType": "none"

         }


    Johnny Coleman [MSFT] Any code posted to this Forum is [As-Is] With No Warranties

    Tuesday, April 8, 2014 10:25 PM
  • It turns out,

    "retryPolicy":
        {

         "retryType": "none"

         },

    needs to be added after the "action" section, if you notice my first email, it was added at the very end.

    It worked when I moved it up.



    Friday, January 30, 2015 4:42 AM

All replies

  • try the following:

       "retryPolicy":
        {

         "retryType": "none"

         }


    Johnny Coleman [MSFT] Any code posted to this Forum is [As-Is] With No Warranties

    Tuesday, April 8, 2014 10:25 PM
  • I tried with  "retryType": "none", but it still does not work.



    Friday, January 23, 2015 8:33 PM
  • Are you getting any errors. How are doing this (fiddler?). How are you confirming that it did not retry

    Johnny Coleman [MSFT] Any code posted to this Forum is [As-Is] With No Warranties

    Thursday, January 29, 2015 11:55 PM
  • It turns out,

    "retryPolicy":
        {

         "retryType": "none"

         },

    needs to be added after the "action" section, if you notice my first email, it was added at the very end.

    It worked when I moved it up.



    Friday, January 30, 2015 4:42 AM