Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/18/08 15:33:04 (15 years ago)
Author:
msteinbi
Message:

Fixed caching (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs

    r1021 r1029  
    156156    }
    157157
    158     public override void SyncWithDb() {
     158    public override void SyncWithDb() { 
    159159      this.adapter.Update(this.cache);
    160160    }
     
    162162    protected override bool PutInCache(Job job) {
    163163      return job != null
    164         && job.State != State.offline
    165         && job.State != State.nullState;
     164        && (job.State == State.calculating
     165            || job.State == State.idle);
    166166    }
    167167
Note: See TracChangeset for help on using the changeset viewer.