Skip to content

Commit

Permalink
Changes to get default database working.
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorPigg committed Sep 13, 2018
1 parent 3f82a3e commit 1ff251e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parsl/dataflow/dflow.py
Expand Up @@ -93,9 +93,9 @@ def __init__(self, config=Config()):
self.db_logger_config_object = config.db_logger_config
if self.db_logger_config_object is not None and self.db_logger_config_object.logger_type == 'local_database'\
and self.db_logger_config_object.eng_link is None:
self.db_logger_config_object.eng_link = 'sqlite3:///{}'.format(self.run_dir)
# maybe only two slashes. Not sure the format of the run_dir so will test and see.
# self.db_logger_config_object.eng_link = 'sqlite3://{}'.format(self.run_dir)
# uses the rundir as the default location. Should report to users?
logger.info('Local monitoring database can be found inside the run_dir at: {}'.format(self.run_dir))
self.db_logger_config_object.eng_link = "sqlite:///{}".format(os.path.join(os.path.abspath(self.run_dir), 'parsl.db'))
if self.db_logger_config_object is None:
self.db_logger = get_db_logger()
else:
Expand Down

0 comments on commit 1ff251e

Please sign in to comment.