I have a few jobs with a bunch of tasks in them that need to have the "Timeout" properties updated.
I have a simple script to do this, but when it runs, the results aren't saving, nor are visible in the client.
Here's the C# snippet of what I'm using. (the remote server connection works fine.)
foreach (JobClass j in RemoteServer.Jobs.GetAll())
Console.WriteLine("Job: " + j.Name + "\t" + j.Id);
if (j.Name.StartsWith("EAI Tasks"))
foreach (TaskClass t in j.Tasks)
Console.WriteLine("Task: " + t.Name + "\t" + t.Id);
t.TimeOut.Use = true;
t.TimeOut.Minutes = 3;
t.TimeOut.Hours = 0;
t.TimeOut.Seconds = 0;
t.TimeOut.ConsiderError = false;
The code runs through this no problem, but the timeout properties haven't changed when I run it again.
This is what the takes look like before and after if I just look at the properties:
? t.TimeOut (After loop.)
Stopping at restarting the program, and the settings are reset.
I don't know what the "garbage" settings are, nor can I access them.
Can you see what I'm missing?