yypsybs
2023-09-09 3cb5a54def670d97301f07170fcaad213bfc54f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Quintiq file version 2.0
#parent: #root
Daemon UnloadDataSetsDSSBenchmarking
{
  Priority: 'Default'
  Text:
  [*
    keepchecking := exists(  this, ScenarioMP, 
                             scenario, 
                             scenario.IsStandAloneStorage() 
                             and scenario.LibOBT_RunTask( relsize) > 0 
                             and forall( scenario, LibOBT_RunTask, task, true, task.ErrorDescription() = '' ) ); 
    
    if ( keepchecking ) 
    {
      traverse( this, 
                ScenarioMP, 
                scenario,
                scenario.IsLoaded() 
                and scenario.IsStandAloneStorage()
                and scenario.LibOBT_RunTask( relsize ) = 0 ) 
      {
        debuginfo( 'Benchmarking daemon unload', scenario.Name(), scenario.DatasetName() ); 
        scenario.SetUnavailable( '' ); 
      }
    }
    
    if ( not keepchecking ) 
    {
      debuginfo( 'Turning off' ); 
      traverse( this.MDSScenarioManager(), MDSObjectDaemons, daemon, daemon.Name() = 'UnloadDataSetsDSSBenchmarking' ) 
      {
        daemon.LocalFrequency( Duration::Minutes( 0 ) ); 
      }
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}