Hi.
Here is my python plugin:
def OnChange(changeType, level, resource):
if changeType == orthanc.ChangeType.NEW_INSTANCE:
_send_images_peer()
if changeType == orthanc.ChangeType.STABLE_STUDY:
_create_db_row()
orthanc.RegisterOnChangeCallback(OnChange)
StableAge in orthanc.conf is 60 seconds.
I uploaded a study with many instances.
All instances upload takes 10 seconds.
So i expected STABLE_STUDY to executed after 70 seconds, right?
But it executes after 30 minutes, because NEW_INSTANCE calls _send_images_peer, which sends instances slowly (it is ok, we have slow internet speed).
Can i force STABLE_STUDY to be executed when all instances are uploaded and ignore NEW_INSTANCE execution?