Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!
Don't forget to submit your entry for the Excellence Awards by October 30! | Need more information about the program? Check out the blog here
SOLVED

.NET API progress callback

Highlighted

Hello folks,

 

I am using the v11.3 .NET API to run wizards and it`s working fine except the Progress Callback. In the documentation is described that the progress value is between 0 and 1. The problem is that I get random values. 

Sample values:

0
0
0.0625
0.1875

 

 Snippet

Wizard wizard = new Wizard(wizardFilePath);
wizard.ToolProgress += Wizard_ToolProgress;
wizard.Run(RunnableDocument.RunMode.OutOfProcess, wizardParameters, null, jobId);

Snippet

private void Wizard_ToolProgress(object sender, ToolProgressEventArgs e)
        {
            // Progress comming directly from the Alteryx Engine
            if (e.ToolId == -1)
            {
                // update progress
            }
            e.Cancel = false;
        }

 

Am I doing something wrong?

Highlighted
16 - Nebula
16 - Nebula

I believe it is just telling you the percentage of tools which have completed.

 

It sends an update once a second I believe. So at first, you had none then some and then a few more before it finally completed and exited.

Highlighted

Thanks for the details.