Consuming events #2061
Unanswered
disappeared1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a job to basically perform exif calculations and store it within the custom_properties field. I was dispatching the job in the MediaHasBeenAdded event but it appears there is some sort of race condition issue with the conversion job and this job.
Where exactly would you recommend I dispatch this job so that it doesn't have any race condition issues? I'm looking at the other events available and I don't really see the others as working. For example, "CONVERSIONHASBEENCOMPLETED" wouldn't work because my media has multiple conversions so I wouldn't want this exif job to be dispatched multiple times.
Thoughts?
EDIT: I'm guessing COLLECTIONHASBEENCLEARED is prob the one I need to use but I don't even know when that runs exactly to be sure? When is that event executed? I just want something like MediaAdDCOMPLETE event I can consume. That would be great.
Beta Was this translation helpful? Give feedback.
All reactions