-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make a first EXIF only Post processor Plugin #6
Comments
@giancarlobi i will start with this one today (sorry for the delay, got distracted with IIIF and Ajax). Will ask for your guidelines and help once i'm in a more advanced state, but i feel it should go faster than expected. Probably the most complex part will be the definition/creation of the Queues and the admin Forms around that. Hope you are doing well. hugs! |
@DiegoPino Great! No problem for delay, I also involved in other issues so I'm good now for support your great fantastic work! All "well" here, thanks, I hope same for you. |
@giancarlobi hi!. I have a question. I'm trying to figure out what is the best moment to trigger the event that will be catched by the eventsubscriber that will enqueue all the actions. I feel it should be at the end of everything, after the Node has been persisted and saved. But then i have second thoughts since i probably want to add info to the SBF JSON about what runners/flavours where send. Remember the tracking info? So, maybe the best is to trigger the runner processing event as the last event of the PRESAVE type of event? What do you think? |
@DiegoPino sorry for late answer, some issues about upgrade OS of mail server... Well, I think yes, it should be at the end of everything. Flavours are addition to SBF Digital object, right? So they could be run also (extremely) in a second step. |
@giancarlobi Ok. I went for presave, but at the last, last step with priority -2000. I had to make a fix on the main strawberryfield module, but that works now. See https://github.com/esmero/strawberryfield/pull/81/files. (The priority was not being respected, now it does and i learned some more PHP!) Reason to go for the I still don't know why my module_hook_update() was not triggering in this module, but can check that later one, i left a note in a commit in pull #5 for you on how to force it to run in the meanwhile. Now i have a bigger question for you! (sorry). So, in the queue i want to push which Post processor plugin should run. That is similar to what you already have here https://github.com/esmero/strawberry_runners/blob/master/test/submit.php#L40-L42, instead flavour id we pass the configuration entity id that defines how a given plugin will run, we BUT! what happens if someone removes the plugin? Or changes the settings before that queue item runs? So Questions is:
I do prefer the second option, in terms of, lets say we need to correct an item that failed to run. Only way is to either remove it and read it to the queue (also good), or change the settings. I know you are busy so i will go for: read config in realtime, if config changes execution will also. But we can discuss this later on. Hugs! |
@DiegoPino Sorry for my late answer to this. I think that depends on the strategy we adopt for runner fail/error. Maybe the right choice is a mix of first and second option, that is we pass the full config of plugin to make it reflect (as a snapshot) current config. Then if it fails it returns "Hey, I failed, please check plugin config then run again". |
@giancarlobi no worries, any time is perfect. I do agree with you. We can have both worlds and even allow this as an option (checkbox somewhere). Working hard on this, hope can share something with you this week. Thanks! |
What is this?
This is all related to #4 and a call we had with @giancarlobi today (MARCH 17th 2020).
The tasks:
as:
defined file in the JSON.Resuming: This task by itself is just making a particular, slim, and limited version of the generic Binary Processor. Nothing more
How does this fit in the global Chain?
I will explain how this needs to be done at the end, when we have all pieces 🍓
The text was updated successfully, but these errors were encountered: