File tree 1 file changed +8
-7
lines changed
src/aleph/vm/orchestrator
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -353,13 +353,14 @@ def main():
353
353
354
354
settings .check ()
355
355
356
- logger .debug ("Initialising the DB..." )
357
- # Check and create execution database
358
- engine = metrics .setup_engine ()
359
- asyncio .run (metrics .create_tables (engine ))
360
- # After creating it run the DB migrations
361
- asyncio .run (run_async_db_migrations ())
362
- logger .debug ("DB up to date." )
356
+ if not args .do_not_run :
357
+ logger .debug ("Initialising the DB..." )
358
+ # Check and create execution database
359
+ engine = metrics .setup_engine ()
360
+ asyncio .run (metrics .create_tables (engine ))
361
+ # After creating it run the DB migrations
362
+ asyncio .run (run_async_db_migrations ())
363
+ logger .debug ("DB up to date." )
363
364
364
365
if args .benchmark > 0 :
365
366
asyncio .run (benchmark (runs = args .benchmark ), debug = args .debug_asyncio )
You can’t perform that action at this time.
0 commit comments