Skip to content
Snippets Groups Projects
  1. Jan 07, 2019
    • Tristan Van Berkom's avatar
      Scheduler: Introduced JobStatus instead of simple success boolean · 627a0179
      Tristan Van Berkom authored
      This changes the deepest callback from when a Job completes to
      propagate a JobStatus value instead of a simple boolean, and updates
      all of the effected code paths which used to receive a boolean
      to now handle the JobStatus values.
      
      This further improves the situation for issue #753, as now we avoid
      queueing cache size jobs for pull jobs which are skipped.
      627a0179
    • Tristan Van Berkom's avatar
      _scheduler/scheduler.py: Only run one cache size job at a time · 8fd2cd9e
      Tristan Van Berkom authored
      When queuing the special cache management related cleanup and
      cache size jobs, we now treat these jobs as special and do the
      following:
      
        * Avoid queueing a cleanup/cache_size job if one is already queued
      
          We just drop redundantly queued jobs here.
      
        * Ensure that jobs of this type only run one at a time
      
          This could have been done with the Resources mechanics,
          however as these special jobs have the same properties and
          are basically owned by the Scheduler, it seemed more straight
          forward to handle the behaviors of these special jobs together.
      
      This fixes issue #753
      8fd2cd9e
    • Tristan Van Berkom's avatar
      _scheduler/scheduler.py: Make _schedule_jobs() private · 9f956502
      Tristan Van Berkom authored
      This is not used anywhere outside of the Scheduler, currently
      only the Scheduler itself is allowed to queue a job at this level.
      
      If the highlevel business logic for automatic queueing of auxiliary
      jobs moves to another location, we can make this public again.
      9f956502
    • Tristan Van Berkom's avatar
      utils.py: Fix stack traces when killing already dead processes · fa20374f
      Tristan Van Berkom authored
      Handle NoSuchProcess errors transparently inside the function, instead
      of only from outside of it where Job uses it.
      fa20374f
  2. Jan 06, 2019
  3. Jan 04, 2019
  4. Jan 03, 2019
  5. Jan 02, 2019
Loading