polling for task results