Skip to content

Commit

Permalink
fix(core): Switch task IDs to be UUIDs (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert committed Mar 10, 2018
1 parent 3157b81 commit 1efd1ef
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ public Task create(String phase, String status) {
public Task create(String phase, String status, String clientRequestId) {
String taskKey = getClientRequestKey(clientRequestId);

String taskId = retry(() -> redisClientDelegate.withCommandsClient(client -> {
return client.incr("taskCounter").toString();
}), "Creating new task ID");
String taskId = UUID.randomUUID().toString();

JedisTask task = new JedisTask(taskId, System.currentTimeMillis(), this, false);
addToHistory(DefaultTaskStatus.create(phase, status, TaskState.STARTED), task);
Expand Down

0 comments on commit 1efd1ef

Please sign in to comment.