a simple scheduler based on dgrid