Version 5.1.0
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);
if (!t.TimeOut.Use)
{
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
{VisualCron.TimeOutClass}
ConsiderError: false
ddoHqdyDg: 0
fpc25CHDq: false
Hours: 0
IgGfsmw7p: 0
Minutes: 0
Seconds: 0
Tven6ZTZV: false
u8beYhl2u: 0
Use: false
? t.TimeOut (After loop.)
{VisualCron.TimeOutClass}
ConsiderError: false
ddoHqdyDg: 0
fpc25CHDq: true
Hours: 0
IgGfsmw7p: 3
Minutes: 3
Seconds: 0
Tven6ZTZV: false
u8beYhl2u: 0
Use: true
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?