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, 'backupCount': 15,
'formatter': 'standard', 'formatter': 'standard',
}, },
'analysis': {
'level': 'DEBUG',
'class': 'logging.handlers.RotatingFileHandler',
'filename': join(LOG_DIR, 'analysis.log'),
'maxBytes': 2097152,
'backupCount': 15,
'formatter': 'standard',
},
'dblog': { 'dblog': {
'level': 'DEBUG', 'level': 'DEBUG',
'class': 'django_db_logger.db_log_handler.DatabaseLogHandler', 'class': 'django_db_logger.db_log_handler.DatabaseLogHandler',
@ -331,6 +339,10 @@ LOGGING = {
'level': 'INFO', 'level': 'INFO',
'propagate': False, 'propagate': False,
}, },
'analysis': {
'handlers': ['console', 'analysis', 'dblog'],
'level': 'DEBUG',
},
'celery': { 'celery': {
'handlers': ['celery', 'dblog', 'console'], 'handlers': ['celery', 'dblog', 'console'],
'level': 'DEBUG', '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 # Aggregate all knob config results tried by the target so far in this
# tuning session and this tuning workload. # tuning session and this tuning workload.
target_results = Result.objects.filter(session=session, target_results = Result.objects.filter(dbms=newest_result.dbms,
dbms=newest_result.dbms,
workload=newest_result.workload) workload=newest_result.workload)
LOG.debug("%s: # results: %s", task_name, len(target_results)) LOG.debug("%s: # results: %s", task_name, len(target_results))
if len(target_results) == 0: if len(target_results) == 0: