code: def start_background_tasks() -> AsyncIOScheduler:
      _scheduler.add_job(
          process_submitted_jobs, IntervalTrigger(seconds=2)
      )
      _scheduler.add_job(
          process_running_jobs, IntervalTrigger(seconds=2)
      )
      _scheduler.add_job(
          process_finished_jobs, IntervalTrigger(seconds=2)
      )
      _scheduler.add_job(
          process_pending_jobs, IntervalTrigger(seconds=10)
      )
      _scheduler.start()
      return _scheduler
  
file_path: dstack/src/dstack/_internal/server/background/__init__.py
imports: from apscheduler.schedulers.asyncio import AsyncIOScheduler
  from apscheduler.triggers.interval import IntervalTrigger
  from dstack._internal.server.background.tasks.process_finished_jobs import process_finished_jobs
  from dstack._internal.server.background.tasks.process_pending_jobs import process_pending_jobs
  from dstack._internal.server.background.tasks.process_running_jobs import process_running_jobs
  from dstack._internal.server.background.tasks.process_submitted_jobs import process_submitted_jobs
label_desc: Use image node_id 2 for calling a global function with example usage: start_background_tasks() and returns: _scheduler