Fixed data sharing
This commit is contained in:
parent
e56309dc28
commit
c116c7cdad
|
@ -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',
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue