removing dash code for separation
This commit is contained in:
@@ -62,8 +62,8 @@ if __name__ == '__main__':
|
||||
# Check if the data was successfully created
|
||||
data_exists = os.path.exists('data/processed') and os.listdir('data/processed')
|
||||
if data_exists:
|
||||
from dash_app import app
|
||||
app.run() # debug=True
|
||||
logger.info('Processing Successful')
|
||||
sys.exit(ec.SUCCESS)
|
||||
else:
|
||||
logger.error('Data pipeline did not produce any data. Dash app will not run.')
|
||||
sys.exit(ec.NO_DATA_PRODUCED)
|
||||
|
||||
Reference in New Issue
Block a user