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