VMware {code} Community
tos2k
Expert
Expert

How to create a synchronous P2V job

Hi!

I looked at the provided samples, and that one just submits a job to the ConvServer and vCenter, right!?

So to know if the job succeeded, app has to poll vCenter?

Is that the only way to get a result of an invokes P2V job?

Thx,

Tos2k

Reply
0 Kudos
2 Replies
patanassov
VMware Employee
VMware Employee

I would suggest to monitor the job's active task after the job is created.

Please take into consideration the task is created not immediately with the job but a little later; sleeping for 1 second shoud be enough.

Retrieving 'activeTask' from ConverterServerJobJobInfo, then get 'info' from ConverterTask and monitor its 'state' property (or better have a peroperty collector monitor it)

HTH

Plamen

Reply
0 Kudos
tos2k
Expert
Expert

OK, no synchronous jobs on Converter API, got that.

Tos2k

Reply
0 Kudos