Speedup travis-ci tests

This commit is contained in:
dvanaken
2019-12-05 09:56:27 -05:00
committed by Dana Van Aken
parent 9e9c9c7510
commit 783b94cd4d
4 changed files with 50 additions and 9 deletions

View File

@@ -5,6 +5,9 @@
#
# ---PIPELINE CONSTANTS---
# how often to run the background tests, in seconds
RUN_EVERY = 300
# the number of samples (staring points) in gradient descent
NUM_SAMPLES = 30

View File

@@ -107,7 +107,6 @@ class ConfigurationRecommendation(UpdateTask): # pylint: disable=abstract-metho
def on_success(self, retval, task_id, args, kwargs):
super(ConfigurationRecommendation, self).on_success(retval, task_id, args, kwargs)
LOG.info("NEXT CONFIG: %s", retval['recommendation'])
result_id = retval['result_id']
result = Result.objects.get(pk=result_id)

View File

@@ -18,6 +18,7 @@ from analysis.preprocessing import (Bin, get_shuffle_indices,
DummyEncoder,
consolidate_columnlabels)
from website.models import PipelineData, PipelineRun, Result, Workload
from website.settings import RUN_EVERY
from website.types import PipelineTaskType, WorkloadStatusType
from website.utils import DataUtil, JSONUtil
@@ -27,8 +28,8 @@ LOG = get_task_logger(__name__)
MIN_WORKLOAD_RESULTS_COUNT = 5
# Run the background tasks every 5 minutes
@periodic_task(run_every=300, name="run_background_tasks")
# Run the background tasks every 'RUN_EVERY' seconds
@periodic_task(run_every=RUN_EVERY, name="run_background_tasks")
def run_background_tasks():
LOG.debug("Starting background tasks")
# Find modified and not modified workloads, we only have to calculate for the