FAQ: Why do I see invocations / hit my daily quota when my workflow isn't running?

When you create certain triggers in a Pipedream workflow, Pipedream has to poll the source API for new events on a schedule. The trigger runs in your account as a separate resource called an event source. Since the event source has to poll for new events, you’ll see some invocations charged to your account.

In other cases, Pipedream receives new events via webhooks, but needs to filter some of the HTTP requests out before triggering your workflow. For example, when you create a Google Drive event source that listens for new files in a specific folder, Google will send webhooks for all new files to the event source. Pipedream has to filter these within the event source, only emitting events for files within the specified folders. So you’ll see more invocations for the source than any linked workflows.

If you visit https://pipedream.com/settings/billing?invocationsByResource=1 , you can see your daily invocations broken out by resource (workflow and event source). This should show you the resources using quota in your account, with a link to the resource:

How do I fix this?

First, if you’re no longer using a specific event source, you can disable it at https://pipedream.com/sources.

For any event source that polls an API, you can control the polling schedule.

  1. Visit https://pipedream.com/sources
  2. Select your event source
  3. Click on the Configuration tab and find the timer configuration among the source properties (you may have to scroll down to find it). For example, the Timer controls the Twitter Search Mentions polling frequency:

Screen Shot 2021-10-26 at 5.56.21 PM

The lower the frequency, the fewer invocations you’ll incur. So running a source once every 3 hours vs. every 1 min makes a huge difference in the total invocations count. But with lower frequency, you might not process events as quickly as you want. Balance your invocations with your tolerance for speed.

Have other question? Ask them in the comments below.

I get one invocation for each folder click when navigating in my Google Drive (without any file or folder change), or on each file open…

PS. There exists a bug in the Billing Invocations chart when switching between days:
Clicked first Mar 24th, then clicked Mar 23rd and then clicked again Mar 24th:

The numbers in the list for Mar 24th remained as the ones for Mar 23rd - see the total value not matching the details from the table below

Hi @nenad-wnbbox

First off, welcome to the Pipedream community. Happy to have you!

Invocations are counted whenever a workflow runs or a source is triggered.

It sounds like the Google Drive source you have set up is incurring events. Sources can either be polling (set by a timer) or by webhooks coming from the 3rd party service.

It sounds like this source is triggered by webhooks, so it’s listening to events on your synced Google Drive account.

Which source type are you using? Happy to look up the internals and see how it’s being triggered.

Sorry for not giving a full scenario:
I use “google_drive-new-files-instant”, it is indeed a webhook coming from the 3rd-party service.

I am ok to go with the internal take-a-look from your side.

No problem! @nenad-wnbbox thanks for the source name, that helps.

Unfortunately it looks like this source is triggered every single time a file changes, so those events will incur invocations even if it didn’t trigger your run.

I’m not sure what your process looks like, but perhaps making a dedicated Google Drive account that should only be triggered with criteria you need.

But unfortunately it’s not possible to sample or limit these webhooks for sources at this time.

Well, the thing is, I do not change anything in my Google Drive.

I just navigate folders - e.g. click on a folder to left-tree-menu to show the list of files.
Also, if I just open a file for viewing, e.g. PDF or a Video, it executes invocation.

The problem is it will burn down easily our innovations free-tier limit, thus we cannot finish up with the examination of your service.

Hi @nenad-wnbbox

Totally understand your concern, and I confirmed with the team that this is one of the quirks with the Google Drive integration.

As a workaround I’ve added another 1,000 daily invocations free of charge to your account. Thanks again for your patience!

Hey Pierce,

I appreciate your fast response. Thank you for the addon.
We will inspect if there is an ability to spot some other Google Drive API for this purpose - so it gives us a bit more insight into the power of PipeDream functionality.

Hi @nenad-wnbbox of course, happy to help :slight_smile:

All of our integration code is open source and you’re able to develop your own actions & triggers too.

Here’s a link to the Google Drive component code you’re using on Pipedream: pipedream/components/google_drive at master · PipedreamHQ/pipedream · GitHub

One more thing, Pierce.

I have reported another awkward behavior in the Billing => Invocations report.
I did not manage to upload multiple images as a new user, but the flow of the bug goes like this:
I select one day, e.g. Mar 24th, with a total of 196 = 98+96+1+1
Then I select some previous day with similar data, e.g. Mar 23rd with a total of 704=276+199+194+20+5
Then I get back to the Mar 24th, which gives improper data where a total of 196 != 276+194+9+20

In order to get proper data for Mar 24th again, I need to refresh the page.

Thanks @nenad-wnbbox noted the bug and we’ll triage it. Appreciate your patience on that one!

Hi there!

I’m also encountering this problem, and was wondering if any progress has been made on it yet?