Add $plugins_deferred - #444
Conversation
|
So this is because |
|
Hmm, I don't quite get it. Let's say my plugin is: Now, if I want to export all events, how does |
|
The intended feature I'm trying to achieve is that you install for example the BigQuery plugin. It starts exporting events immediately. Then you can click "export from the beginning" somewhere and it'll upload all the events that happened before the plugin ran. We can't filter by The Hope this clarifies a bit more :) |
|
That makes sense now! So, when it comes time to "export from beginning", you'd check all three Hmm, this is clearer, but I'm still not sure it makes sense to do this via |
|
Indeed a "real" solution is to have some dynamic key-value database that for each plugin/event pair states if that's successful or not. However that's way too complex and storage intensive for this need. As a proxy, we can just assume that all deferred (I still think there could be a better name) events were processed/exported successfully. We do have a separate "retry for the 48h" mechanism in place for such |
|
I guess that's fair, and a reasonable compromise! I'll just mention this in our docs as well, whenever that happens. re: naming -> .. and then all we need is a trigger warning 😂 |
|
Ooh... not sure about |
* add $plugins_deferred * remove this, as we will remove the entire batching code ASAP as well Co-authored-by: Michael Matloka <dev@twixes.com>
PRs over issues, but still things to discuss here.
Changes
$plugins_deferredto events to track plugins that run viaonEventandonSnapshot:deferred? It kind of means that, though not "immediately after". It's one word though, so easier with the capitalization-Zoo we have going around. Please suggest something better 🤞 😁 . "Enqueued"? Too many queues...This flat structure most likely allows for better filtering on the db level.
Checklist