added local flag support to cluster pending tasks api