none
Strange behaviour when deleting a job in Azure scheduler RRS feed

  • Question

  • Hi,

    I've been developing a .NET core application that makes use of the Azure scheduler for some time now. Everything has been running smooth so far except for one problem I started to encounter last week. It seems that when I (programmetically)create a new job and then delete it shortly after I get confirmation that it has been created, Azure returns a 200 indicating success even though it hasn't actually deleted it.

    This appears to happen randomly but often enough that it could pose quite a problem.

    Any help would be grately appreciated.

    I'm using the .NET Scheduler 2.2.0 library (Microsoft.Azure.Management.Scheduler)

    sincerely,

    Michel
    Tuesday, September 5, 2017 8:10 AM

All replies

  • Are you generating any logs to understand this problem?
    Tuesday, September 5, 2017 8:18 AM
  • Can you please check the Activity Log to confirm what message is showing there after deletion.

    Please Mark as Answer if my post works for you or Vote as Helpful if it helps you. Kapil Singh

    Tuesday, September 5, 2017 8:27 AM
  • Hey,

    https://pasteboard.co/GIWbDLl.png

    The logs for the job.

    This is the JSON of the delete request log from the image.

    {
        "authorization": {
            "action": "Microsoft.Scheduler/jobCollections/jobs/delete",
            "scope": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup/providers/Microsoft.Scheduler/jobCollections/4cfdad28-d4ab-4d48-bfe8-155c887963da/jobs/440f82df21f44ea0a704cc5606631d5d"
        },
        "channels": "Operation",
        "claims": {
            "aud": "https://management.core.windows.net/",
            "iss": "https://sts.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/",
            "iat": "1504600812",
            "nbf": "1504600812",
            "exp": "1504604712",
            "aio": "Y2FgYPj687QGq1Vy56ylJ8S0ln98CgA=",
            "appid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "appidacr": "1",
            "e_exp": "262800",
            "groups": "97b30531-3ada-462d-96f9-e8f29cfd838d,b755629d-d021-40cf-ac7d-c8459ff8fadb,e0aab7f5-1d10-46fa-a9f1-d6368802d977",
            "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/",
            "http://schemas.microsoft.com/identity/claims/objectidentifier": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "http://schemas.microsoft.com/identity/claims/tenantid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
            "uti": "T9QJ5hKPRkWBUJKDh5AiAA",
            "ver": "1.0"
        },
        "correlationId": "07dc7567-a22b-4694-9414-7162606bbf35",
        "eventDataId": "8244184d-a807-4ef9-a38d-0cf559276a44",
        "eventName": {
            "value": "EndRequest",
            "localizedValue": "End request"
        },
        "category": {
            "value": "Administrative",
            "localizedValue": "Administrative"
        },
        "eventTimestamp": "2017-09-05T08:53:56.8651976Z",
        "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup/providers/Microsoft.Scheduler/jobCollections/4cfdad28-d4ab-4d48-bfe8-155c887963da/jobs/440f82df21f44ea0a704cc5606631d5d/events/8244184d-a807-4ef9-a38d-0cf559276a44/ticks/636401984368651976",
        "level": "Informational",
        "operationId": "07dc7567-a22b-4694-9414-7162606bbf35",
        "operationName": {
            "value": "Microsoft.Scheduler/jobCollections/jobs/delete",
            "localizedValue": "Microsoft.Scheduler/jobCollections/jobs/delete"
        },
        "resourceGroupName": "resourcegroup",
        "resourceProviderName": {
            "value": "Microsoft.Scheduler",
            "localizedValue": "Microsoft.Scheduler"
        },
        "resourceType": {
            "value": "Microsoft.Scheduler/jobCollections/jobs",
            "localizedValue": "Microsoft.Scheduler/jobCollections/jobs"
        },
        "resourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup/providers/Microsoft.Scheduler/jobCollections/4cfdad28-d4ab-4d48-bfe8-155c887963da/jobs/440f82df21f44ea0a704cc5606631d5d",
        "status": {
            "value": "Succeeded",
            "localizedValue": "Succeeded"
        },
        "subStatus": {
            "value": "OK",
            "localizedValue": "OK (HTTP Status Code: 200)"
        },
        "submissionTimestamp": "2017-09-05T08:54:10.0209434Z",
        "subscriptionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "properties": {
            "statusCode": "OK",
            "serviceRequestId": "efe0ccda-8514-461d-9bc8-d216d28bc613"
        },
        "relatedEvents": []
    }

    It seems to say it was successfull even though the job is still there. 

    Greetings,

    Jasper van der Bijl

    Tuesday, September 5, 2017 9:22 AM
  • Thanks for the information Jasper.

    From Jason it seems everything fine to me.

    Can you please contact Azure support team for this using below link -

    https://docs.microsoft.com/en-us/azure/azure-supportability/how-to-create-azure-support-request


    Please Mark as Answer if my post works for you or Vote as Helpful if it helps you. Kapil Singh

    Tuesday, September 5, 2017 9:30 AM