This topic was automatically generated from Slack. You can find the original thread here.
I’m confused about how credits are calculated. I have a source that is “Notion: page updated in database” that polls every 15 mins. There have been 0 events, 0 workflows triggered by this source today. Each run of the source has taken under 1s. Despite this the usage/billing page says that this source has used 71 credits today. How could that be?
I discussed this with Andrew via DM, but the core issue was that the event source was running as an “independent” source (i.e. not triggering a workflow). I’m improving the docs right now to make this case more clear.
We only give source invocations away for free when it’s configured to trigger a workflow. This is called a “dependent” source. Sources that don’t trigger a workflow are considered “independent”.
The core logic here is: when a source triggers a workflow, you shouldn’t be charged two invocations. The value is in the workflow, so we give you the source invocation for free. But sources can run independently (for example, you can send source emits to a webhook, poll them via API, etc). We can’t give independent source invocations away for free, since we’re still running compute on our end.