[Hawkular-commits] [hawkular/hawkular-metrics] 62b7f5: [HWKMETRICS-168] adding group_key and exec_order c...

John Sanda jsanda at redhat.com
Mon Jul 27 09:43:36 EDT 2015


  Branch: refs/heads/task-scheduler
  Home:   https://github.com/hawkular/hawkular-metrics
  Commit: 62b7f553bc20d1898a713d8369047bbb2c76c25a
      https://github.com/hawkular/hawkular-metrics/commit/62b7f553bc20d1898a713d8369047bbb2c76c25a
  Author: John Sanda <jsanda at redhat.com>
  Date:   2015-07-27 (Mon, 27 Jul 2015)

  Changed paths:
    M schema-manager/src/main/resources/schema.cql
    A task-queue/src/main/java/org/hawkular/metrics/tasks/api/SingleExecutionTrigger.java
    M task-queue/src/main/java/org/hawkular/metrics/tasks/api/Task2.java
    M task-queue/src/main/java/org/hawkular/metrics/tasks/impl/Queries.java
    M task-queue/src/main/java/org/hawkular/metrics/tasks/impl/Task2Impl.java
    M task-queue/src/main/java/org/hawkular/metrics/tasks/impl/TaskSchedulerImpl.java
    M task-queue/src/test/java/org/hawkular/metrics/tasks/impl/TaskSchedulerImplTest.java
    M task-queue/src/test/java/org/hawkular/metrics/tasks/impl/TaskSchedulerTest.java
    M task-queue/src/test/java/org/hawkular/metrics/tasks/impl/TaskSubscriber.java

  Log Message:
  -----------
  [HWKMETRICS-168] adding group_key and exec_order columns to task_queue table

These columns help if/when tasks have interdependencies. All tasks having the
same group key will be stored in the same queue, which means that they will be
associated with the same lease. The exec_order column defines an execution
order for tasks within the same group. Tasks with a lower number are executed
first.

The commit also adds/updates TaskSchedulerTest to use RxJava's TestScheduler.
It took me a good bit of time over the weekend to understand how to set things
up, but it was well worth the effort. Tests will be much more reliable,
consistent, and faster as they use a virtual clock.




More information about the hawkular-commits mailing list