GetJob Method (IJobsManager)
Get the details of a job by jobId. This method must be called on the MCT. Use QueuedTask.Run.
return await QueuedTask.Run(() =>
{
var job = WorkflowClientModule.JobsManager.GetJob("123456789", true, true);
});
How to get a job
// GetJob returns an existing job
try
{
var jobManager = WorkflowClientModule.JobsManager;
var job = jobManager.GetJob(jobId);
// Do something with the job
}
catch (NotConnectedException)
{
// Not connected to Workflow Manager server, do some error handling
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3.2 or higher.