Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Process Id vs Task Id

Avatar

Level 10

By any chance a number (say 5505) be assigned to a Process and a Task?

When I search a task using its id (5505) , it appears as a running task in the search result.

When I try to search processes using the same Id, it shows a completed process instance.

How is this possible?

From my knowledge, I'm assuming that the process id & task id shares a single unique sequence number. Am i correct?

Nith

1 Accepted Solution

Avatar

Correct answer by
Level 4

This is expected and normal because Processes and Tasks are separate entities.  There will definitely be overlap as the values are assigned independently.  The first process id in the system will have a process instance id of 1 and the first task will have a task id of 1.

FYI, for performance reasons, these ids are currently allocated in blocks of 100 so if you have a brand new 2 node cluster, one will be assigning ids in the range of 1-100 and the other will assigning ids in the range of 101-200.  This means that you can't depend on these ids to imply creation order (e.g. process id 111 could have been created before process id 11).

View solution in original post

0 Replies

Avatar

Correct answer by
Level 4

This is expected and normal because Processes and Tasks are separate entities.  There will definitely be overlap as the values are assigned independently.  The first process id in the system will have a process instance id of 1 and the first task will have a task id of 1.

FYI, for performance reasons, these ids are currently allocated in blocks of 100 so if you have a brand new 2 node cluster, one will be assigning ids in the range of 1-100 and the other will assigning ids in the range of 101-200.  This means that you can't depend on these ids to imply creation order (e.g. process id 111 could have been created before process id 11).

Avatar

Level 10

Thanks for the clear explanation.

It would be great if this point is document somewhere!