跳到主内容

搜索

搜索

Taskmanager Engine Stopp After One Hour

评论

4 条评论

  • Avatar
    Domingo Rodriguez
    版主

    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
  • Avatar
    Legacy Poster

    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
  • Avatar
    Domingo Rodriguez
    版主

    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 Set

     

    Field Value
    A TimeSpan. Represents the amount of time to pass before automatically restarting the task engine.
     

    0
  • Avatar
    Legacy Poster

    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

请先登录再写评论。