Lightweight batch processing framework for tasks with dependency inside