Esempio n. 1
0
void site_config_set_max_running_local( site_config_type * site_config , int max_running_local) {
  queue_driver_type * local_driver = site_config_get_queue_driver( site_config , LOCAL_DRIVER_NAME );
  queue_driver_set_max_running( local_driver , max_running_local );
  
  if (!site_config->user_mode) 
    site_config->max_running_local_site = max_running_local;
}
Esempio n. 2
0
void site_config_set_max_running_rsh( site_config_type * site_config , int max_running_rsh) {
  queue_driver_type * rsh_driver = site_config_get_queue_driver( site_config , RSH_DRIVER_NAME );
  queue_driver_set_max_running( rsh_driver , max_running_rsh );
  
  if (!site_config->user_mode) 
    site_config->max_running_rsh_site = max_running_rsh;
}
Esempio n. 3
0
void site_config_set_max_running_lsf( site_config_type * site_config , int max_running_lsf) {
  queue_driver_type * lsf_driver = site_config_get_queue_driver( site_config , LSF_DRIVER_NAME );
  queue_driver_set_max_running( lsf_driver , max_running_lsf );
  
  if (!site_config->user_mode) 
    site_config->max_running_lsf_site = max_running_lsf;
}
Esempio n. 4
0
static bool queue_driver_set_generic_option__(queue_driver_type * driver, const char * option_key, const void * value) {
  bool option_set = true;
  {
    if (strcmp(MAX_RUNNING, option_key) == 0) {
      int max_running_int = 0;
      if (util_sscanf_int(value, &max_running_int)) {
        queue_driver_set_max_running(driver, max_running_int);
        option_set = true;
      }
      else
        option_set = false;
    } else
      option_set = false;
  }
  return option_set;
}
Esempio n. 5
0
void site_config_set_max_running( site_config_type * site_config , int max_running ) {
  queue_driver_set_max_running( site_config->current_driver , max_running );   /* We set the max running of the current driver */ 
}