code: def run(job_ini, slowest=False, hc=None, param='', concurrent_tasks=None,
          exports='', loglevel='info', pdb=None):
      
      dbserver.ensure_on()
      if param:
          params = oqvalidation.OqParam.check(
              dict(p.split('=', 1) for p in param.split(',')))
      else:
          params = {}
      if slowest:
          prof = cProfile.Profile()
          stmt = ('_run(job_ini, concurrent_tasks, pdb, loglevel, hc, '
                  'exports, params)')
          prof.runctx(stmt, globals(), locals())
          pstat = calc_path + '.pstat'
          prof.dump_stats(pstat)
          print('Saved profiling info in %s' % pstat)
          print(get_pstats(pstat, slowest))
      else:
          _run(job_ini, concurrent_tasks, pdb, loglevel, hc, exports, params)
docs: Run a calculation bypassing the database layer