- """Jobs for scheduler module"""
- from app import app, api
- def check_resources(resource_id):
- """Check resources and refill if necessary"""
- app.check_resources(resource_id)
- def refill_resource(resource_id):
- """Execute refill job"""
- api.refill(resource_id)
|