microsoft / MK.IO

A .NET client SDK for MediaKind MK.IO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

job.Status seems wrong

sjorsmiltenburg opened this issue · comments

Hi,

I am polling the job status and I get back job.Status = "WaitingForActivation".
On the mk.io portal I see the job has 'job state' = "Finished"
While 'state' might not be the same as 'status', there are no other properties that indicate it is 'finished'

I'm using the latest version 1.6.1

My code:
var mkioClient = GetMKIOClient();
var job = mkioClient.Jobs.GetAsync(_transformName, mkioVideo.JobName);

The weird thing is that JobState seems to be an enum in your code and the returned value is not in the list:
https://github.com/microsoft/MK.IO/blob/main/MK.IO/Job/Models/JobState.cs

Seems like a bug, or am I missing something?

ok, I feel completely stupid.. There is no bug.
I forgot to await the call and was looking at the wrong object type
I appologize for my stupidity. Please close this issue.

No problem ! Thanks for the update.