Fixed data sharing

This commit is contained in:
dvanaken 2020-07-31 17:30:31 -04:00
parent e56309dc28
commit c116c7cdad
2 changed files with 13 additions and 2 deletions

View File

@ -287,6 +287,14 @@ LOGGING = {
'backupCount': 15,
'formatter': 'standard',
},
'analysis': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': join(LOG_DIR, 'analysis.log'),
'maxBytes': 2097152,
'backupCount': 15,
'formatter': 'standard',
},
'dblog': {
'level': 'DEBUG',
'class': 'django_db_logger.db_log_handler.DatabaseLogHandler',
@ -331,6 +339,10 @@ LOGGING = {
'level': 'INFO',
'propagate': False,
},
'analysis': {
'handlers': ['console', 'analysis', 'dblog'],
'level': 'DEBUG',
},
'celery': {
'handlers': ['celery', 'dblog', 'console'],
'level': 'DEBUG',

View File

@ -323,8 +323,7 @@ def aggregate_target_results(aggregate_target_results_input):
# Aggregate all knob config results tried by the target so far in this
# tuning session and this tuning workload.
target_results = Result.objects.filter(session=session,
dbms=newest_result.dbms,
target_results = Result.objects.filter(dbms=newest_result.dbms,
workload=newest_result.workload)
LOG.debug("%s: # results: %s", task_name, len(target_results))
if len(target_results) == 0: