Skip to content

Commit 24a1b9b

Browse files
committed
Merge branch 'master' of https://github.com/Samsung/qaboard into master-github
2 parents d604b98 + 62aa556 commit 24a1b9b

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

qaboard/qa.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,14 @@ def sync(ctx, input_path, output_path):
356356
notify_qa_database(**ctx.obj, metrics=metrics, is_pending=False, is_running=False)
357357
click.secho(str(metrics), fg='green')
358358

359-
359+
runners_config = config.get('runners', {})
360+
if 'default' in runners_config:
361+
default_runner = runners_config['default']
362+
else:
363+
task_runners = [r for r in runners_config if r not in ['default', 'local']]
364+
default_runner = task_runners[0] if task_runners else 'local'
360365
lsf_config = config['lsf'] if 'lsf' in config else config.get('runners', {}).get('lsf', {})
361366
local_config = config.get('runners', {}).get('local', {})
362-
# FIXME: change how we pick the default task runner
363-
# task_runners = [r for r in config.get('runners', {}).keys() if r not in ['default', 'local']]
364367
@qa.command(context_settings=dict(
365368
ignore_unknown_options=True,
366369
))
@@ -372,7 +375,7 @@ def sync(ctx, input_path, output_path):
372375
@click.option('--list', 'list_contexts', is_flag=True, help="Print as JSON details about each run we would do.")
373376
@click.option('--list-output-dirs', is_flag=True, help="Only print the prefixes for the results of each batch we run on.")
374377
@click.option('--list-inputs', is_flag=True, help="Print to stdout a JSON with a list of the inputs we would call qa run on.")
375-
@click.option('--runner', default=config.get('runners', {}).get('default', 'celery' if os.name!='nt' else 'local'), help="Run runs locally or using a task queue like Celery, LSF...")
378+
@click.option('--runner', default=default_runner, help="Run runs locally or using a task queue like Celery, LSF...")
376379
@click.option('--local-concurrency', default=os.environ.get('QA_BATCH_CONCURRENCY', local_config.get('concurrency')), type=int, help="joblib's n_jobs: 0=unlimited, 2=2 at a time, -1=#cpu-1")
377380
@click.option('--lsf-threads', default=lsf_config.get('threads', 0), type=int, help="restrict number of lsf threads to use. 0=no restriction")
378381
@click.option('--lsf-memory', default=lsf_config.get('memory', 0), help="restrict memory (MB) to use. 0=no restriction")

webapp/src/utils.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import React from "react";
2-
31
import { interpolateRainbow } from "d3-scale-chromatic";
4-
import md5 from "js-md5";
52
import { median as mathjs_median } from "mathjs/number";
63
import { levenshtein } from "./levenshtein";
4+
import md5 from "js-md5";
75

8-
import { ExtraParametersTags, ConfigurationsTags, PlatformTag } from './components/tags'
9-
10-
// import math from '@mathjs';
116

127
const calendarStrings = {
138
lastDay: "[Yesterday]",

0 commit comments

Comments
 (0)