Batch processing with interval graph compatibilities between tasks