JSONArray shardArray = new JSONArray();
Counters totalCounters = new CountersImpl();
int i = 0;
long[] workerCallCounts = new long[state.getTotalTaskCount()];
Iterator<IncrementalTaskState<IncrementalTask>> tasks = shardedJobService.lookupTasks(state);
while (tasks.hasNext()) {
IncrementalTaskState<?> taskState = tasks.next();
JSONObject shardObject = new JSONObject();
shardObject.put("shard_number", i);
shardObject.put("shard_description", taskState.getTaskId());