2 Replies Latest reply on May 4, 2010 4:50 AM by $Nith$

    Process Id vs Task Id

    $Nith$ Level 4

      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?




        • 1. Re: Process Id vs Task Id
          Jon Bionda Level 3

          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).

          • 2. Re: Process Id vs Task Id
            $Nith$ Level 4

            Thanks for the clear explanation.


            It would be great if this point is document somewhere!