jobs.py 273 B

123456789101112
  1. """Jobs for scheduler module"""
  2. from app import app, api
  3. def check_resources(resource_id):
  4. """Check resources and refill if necessary"""
  5. app.check_resources(resource_id)
  6. def refill_resource(resource_id):
  7. """Execute refill job"""
  8. api.refill(resource_id)