Archy (called from C# program) hangs

I have created a c# application where I get the flow names
"gc flows list -a"
I then loop through these flow name and
process = new Process();
command = $"archy export --flowName "{name}" --flowType inboundcall --exportType yaml --outputDir C:\Users\GerardTobin\Archy\FlowBackUp --force";
process.StartInfo.FileName = "cmd.exe";
process.StartInfo.Arguments = "/c " + command;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
output = process.StandardOutput.ReadToEnd();
process.WaitForExit();

The problem is that archy usually hangs after a few downloads. I have tried running the command from the command line and it was successful. Occasionally the program runs to completion.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.