Implemented "DynamoScheduler.CompactTaskQueue" method