question

HamiltonTobonMosquera-8941 avatar image
0 Votes"
HamiltonTobonMosquera-8941 asked SatishBoddu-MSFT answered

Why is JobResponse createdTime always greather than startTime?

I am using Python's Azure IoT SDK for getting information about iot scheduled jobs. According to the docs when a job is created the startTimeUtc and createdTimeUtc are ignored if given. When I create schedule some jobs, wait for them to finish, and get their information using the object IoTHubJobManager with the function get_scheduled_job(job_id), the created_time returned is always greather than the start_time. Sometimes the difference is in the order of minutes, which makes no sense to me.

Please look at the following image: 120257-image.png

Why is this happening? Is it that the created_time means what is contained in the start_time?

Take a look at the docs of JobResponse


azure-iot-sdk
image.png (5.8 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @HamiltonTobonMosquera-8941 Thanks for the query, we are looking into this.

0 Votes 0 ·

Hello @SatishBoddu-MSFT . Have you found anything? Thanks for looking into this.

0 Votes 0 ·
SatishBoddu-MSFT avatar image SatishBoddu-MSFT HamiltonTobonMosquera-8941 ·

Hello @HamiltonTobonMosquera-8941Thanks for your patience, We have escalated this to our team. We would expect a response soon.

I will keep you posted on this.

0 Votes 0 ·

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered

Hello @HamiltonTobonMosquera-8941 Below is the response we received from Microsoft's Product Team on your initial query.


Job Start Time – user-specified. Could be a future time or some earlier time before the job actually submitted/created.
Job Create Time – System generated when it receives the request and creates the job to run.

Job Create Time could be later than the specified job start time if the customer specifies some earlier time as Job start time before sending the job request.

Please comment in the below section for further discussion.

If the response is helpful, please click "Accept Answer" and upvote it, so that the other community members can find this question useful.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.