jobs.py 401 B

12345678910111213141516
  1. """Jobs for scheduler module"""
  2. from app import app, api
  3. def sync_deep_exploration(region_id):
  4. """Check resources and refill if necessary"""
  5. app.sync_deep_exploration(region_id)
  6. def schedule_orders():
  7. """Schedule deep exploration orders"""
  8. app.schedule_orders()
  9. def start_deep_exploration_order(order_id):
  10. """Start deep exploration"""
  11. app.start_deep_exploration(order_id)