code: def build(tasks, worker_scheduler_factory=None, detailed_summary=False, **env_params):
      
      if "no_lock" not in env_params:
          env_params["no_lock"] = True
  
      luigi_run_result = _schedule_and_run(tasks, worker_scheduler_factory, override_defaults=env_params)
      return luigi_run_result if detailed_summary else luigi_run_result.scheduling_succeeded
docs: Run internally, bypassing the cmdline parsing.
  
      Useful if you have some luigi code that you want to run internally.
      Example:
  
      .. code-block:: python
  
          luigi.build([MyTask1(), MyTask2()], local_scheduler=True)
  
      One notable difference is that `build` defaults to not using
      the identical process lock. Otherwise, `build` would only be
      callable once from each process.
  
      :param tasks:
      :param worker_scheduler_factory:
      :param env_params:
      :return: True if there were no scheduling errors, even if tasks may fail.