I’ve got a quick question about WU when it comes to custom events.
I’ve been testing my app and have noticed that WU is consumed even when simply triggering a custom event. As in, the action to trigger the custom event consumes 0,6 WU. To finish running the actions within the custom event is a separate batch of WU.
But when I copy paste the actions from that custom event directly in the workflow, (so pretty much the same thing, just not an event trigger), it costs me 0.6 WU less. Would it not make sense to have custom event triggers not cost any WU?
Maybe I am reading the logs wrong, which brings me to my question; Is it true that a custom event trigger consumes an additional 0.6 WU compared to just having the actions in the original workflow?
I assume you’re talking about Custom Events on the backend, in which case yes, all sever actions have a WU cost of 0.6 - and triggering a custom event in a backend workflow is a server action - so I guess it must indeed have a WU cost of 0.6 (and if that’s what you’re seeing the that must confirm it).
Another example of how the new pricing model may force people to build their apps in less efficient, or less logical ways, in order to lower WU cost.
It’s actually a custom event on the same page I’m working on. It’s not a schedule API workflow in the backend. It’s quite frustrating because I have multiple elements that, on click, do the same thing.
Logically, you would want a custom event for that, but Bubble wants to charge me for trying to be nice and tidy… Very counterintuitive.
While I have you here, could I ask you one more question?
In the Logs tab, I see WU displayed for both “finished running action” and “finished running workflow”. Is my total WU consumption for a particular occurrence the WU under “finished running workflow” or do I have to add up both the total WUs for “finished running actions” AND “finished running workflow” to calculate my total WU consumption?
That definitely shouldn’t be happening then - only server actions should have WU costs - so triggering a Custom Event on the page shouldn’t have any WU cost in itself. If you’re definitely sure that’s what you’re seeing I’d suggest contacting Bubble to get some clarification as to why you’re being charged for triggering client-side custom events.
Is my total WU consumption for a particular occurrence the WU under “finished running workflow” or do I have to add up both the total WUs for “finished running actions” AND “finished running workflow” to calculate my total WU consumption?
The WU cost of running the workflow will be the one you see next to “Finished Running Workflow” - and that should be the sum of all the workflow actions within it.
Although that will only show you the WU cost of the workflow itself, and not (as far as I know) the costs of any other workflows (including custom events) that are triggered or scheduled from the workflow in question (aside from the cost of triggering or scheduling them).