Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/13 10:15:52 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Janitor is now working as expected in Windows Azure
  • Added basic support for experiments (draggable experiments)
  • Added methods to save/read experiments from TableStorage
  • The job status can now be retrieved by using the GetTasks/GetTaskData methods
  • Added a class to convert JSON-objects to Algorithm instances
  • Web page: Added experiment button to navigation
Location:
branches/OaaS/HeuristicLab.Services.Hive/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Hive/3.3/HiveDao.cs

    r8326 r9215  
    2828using HeuristicLab.Services.Hive.Interfaces;
    2929using System.Data.Common;
     30using System.Configuration;
    3031
    3132namespace HeuristicLab.Services.Hive.DataAccess {
     
    3435    public HiveDataContext CreateContext(bool longRunning = false) {
    3536      //var context = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString);
    36       var context = new HiveDataContext(provider.GetOpenConnection(Settings.Default.HiveConnectionStringName));     
     37      HiveDataContext context;
     38      if (ConfigurationManager.ConnectionStrings[Settings.Default.HiveConnectionStringName] == null) {
     39        context = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString);
     40      }
     41      else {
     42        context = new HiveDataContext(provider.GetOpenConnection(Settings.Default.HiveConnectionStringName));
     43      }
    3744      if (longRunning) context.CommandTimeout = (int)Settings.Default.LongRunningDatabaseCommandTimeout.TotalSeconds;
    3845      return context;
  • branches/OaaS/HeuristicLab.Services.Hive/3.3/HiveJanitor.cs

    r8266 r9215  
    2323using System.Threading;
    2424using HeuristicLab.Services.Hive.DataAccess;
     25using System.Diagnostics;
    2526
    2627namespace HeuristicLab.Services.Hive {
     
    5556        try {
    5657          LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: starting cleanup");
     58          Trace.WriteLine("HiveJanitor: starting cleanup");
    5759          bool cleanup = false;
    5860          DateTime lastCleanup = DateTime.MinValue;
     
    7072          }
    7173          LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: cleanup finished");
     74          Trace.WriteLine("HiveJanitor: cleanup finished");
    7275        }
    7376        catch (Exception e) {
    7477          LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log(string.Format("HiveJanitor: The following exception occured: {0}", e.ToString()));
     78          Trace.WriteLine(string.Format("HiveJanitor: The following exception occured: {0}", e.ToString()));
    7579        }
    7680        waitHandle.WaitOne(HeuristicLab.Services.Hive.Properties.Settings.Default.CleanupInterval);
Note: See TracChangeset for help on using the changeset viewer.