Dynamic task scheduling and handling framework.