iocchi / PetriNetPlans

Petri Net Plans library and applications
31 stars 15 forks source link

IDs are assigned multiple times to different actions #14

Open cdondrup opened 8 years ago

cdondrup commented 8 years ago

I discovered that IDs are used multiple times for actions with the same name and same parameters if executed concurrently. Let's say I have a PNP like this:

pnp_conc

Where my two actions both have a a wait_5. The output I get is:

[ INFO] [1470999215.113255001]: Start: dummy spam foo - ID: 1
No plan found. Trying with an action ...
[ INFO] [1470999215.215408931]: Start: dummy wait 5 - ID: 2
No plan found. Trying with an action ...
[ INFO] [1470999215.317454795]: Start: dummy eggs bar - ID: 3
[ INFO] [1470999215.417702159]: Start: dummy wait 5 - ID: 2

So both wait_5 actions got the same ID even though in my opinion they are supposed to spawn two different executables each waiting for 5 seconds.