cooling-singapore / saas-middleware

Simulation-as-a-Service (SaaS) Middleware
MIT License
0 stars 0 forks source link

Duplicate processors #413

Closed HeikoAydt closed 10 months ago

HeikoAydt commented 11 months ago

Bug Description The same processor can be deployed many times. Execution nodes check if a processor with proc_id is already deployed. However, proc_id is based on the object id. DOR produces unique object ids based on hashes that include a timestamp. This means that object ids are not suitable to for duplicate checks. Instead the content hash c_hash should be used.

Steps To Reproduce Simply deploy the same processor by uploading the same GPP multiple times.

Expected behaviour Despite having multiple GPP data objects, the processor should only be deployed once since they all point at the same processor.

Actual behaviour Execution nodes deploy multiple instances of the same processor.