Taskmanager Engine Stopp After One Hour
I am testing our new printsystem based on the taskmaster example.
Why did alle the engines I start stopp after exact one hour?
Can I configure this time periode?
-
This is determined by the "RestartSchedule" frequency, which by default is set to 60 minutes for the process recycling.
You can change the "RestartType" enumeration according to the below syntax:
EveryCommand 1 --> Restart the task engine after every command. Has an enumeration value of 1.
Duration 2 --> Restart the task engine after the duration specified by the Duration property. Has an enumeration value of 2.
OnlyOnFailure 3 --> Restart the task engine automatically only when it crashes. Has an enumeration value of 3.
You can either increase the duration or set the value to be "OnlyOnFailure".
0 -
Can you please help me how to set this?
In the Seagull.BarTender.PrintServer Namespace I found the enumerator but I didn't find out how to set it in code.
0 -
You would make use of the "RestartSchedule" class.
RestartSchedule.Type Property
RestartSchedule Class
Gets and sets when to automatically restart the task engine.
Namespace: Seagull.BarTender.PrintServer
Assembly: Seagull.BarTender.Print (in Seagull.BarTender.Print.dll) Version: 10.1.3.0 (10.1.3.0)C#
public RestartSchedule.RestartType Type { get; set; }Visual Basic
Public Property Type As RestartSchedule.RestartType Get Set-------------------
RestartSchedule.Duration Property
RestartSchedule Class
Gets and sets how often to restart the task engine. Used when the Type property is set to Duration.Namespace: Seagull.BarTender.PrintServer
Assembly: Seagull.BarTender.Print (in Seagull.BarTender.Print.dll) Version: 10.1.3.0 (10.1.3.0)C#
public TimeSpan Duration { get; set; }Visual Basic
Public Property Duration As TimeSpan Get SetField Value
A TimeSpan. Represents the amount of time to pass before automatically restarting the task engine.
0 -
tech support gave me the hint:
taskManager.RestartSchedule.Type = RestartSchedule.RestartType.OnlyOnFailure; taskManager.Start(numEngines, engineSettings);
Thanks a lot both, support and forum!!!! :rolleyes:
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare