http module, schedule task denpends on some factors