GithubHelp home page GithubHelp logo

Comments (16)

unytics avatar unytics commented on June 1, 2024 1

Sorry.
Can you repull and retry please?

from bigfunctions.

unytics avatar unytics commented on June 1, 2024 1

Simply remove max_rows_per_query from the yaml file where you don't want it to be applied and redeploy the function of the yaml file.

It does nothing if you put it in config.yaml.

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024 1

That's it. After I changed max_rows_per_query in get.yaml everything is working fine. Thank you so much for your help!

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

Hi,

Thanks for creating this issue.

I am using firestore in datastore mode for quota management.

But this seems to complexify the deployment for people in their GCP project:

  • deployer needs to have enabled firestore
  • deployer needs to have his firestore in datastore mode.
  • This is impossible to do if the deployer is already using firestore in native mode...
  • service account used in the function needs to have the permission to write to firestore

That's why I am considering removing quota management by default.
What do you think?

What's more, I am not very happy with the scalability of how quota management is done for now. I am considering changing that in the future..

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

I would rather not have quota management than enable additional services.

In my case, firestore will be just another thing to worry about. And to be honest - a dealbreaker.

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

Sounds good.
I will add an option to choose the quota manager backend (with none by default).

So it should work for you.

I'll let you know.

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

@dmustafic-datafin I pushed to main branch the updates.
Can you tell me if it works for you?

Here is the commit:
5f72e80

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

Hey, I pulled the commit, reinstalled the function and now I get this:
image

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

You nailed it man, it works! Thank you so much!

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

Hey, another issue :(

I am executing a stored procedure that queries a lot of data from an API. I changed the code so it uses my get function. But I'm getting the error.

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

bq function seems to be deployed correctly.

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

You can change quota or disable them in the yaml of the function before deploying it.

Now, as you don't use Firestore, the only quota that is taken into consideration is the number of rows per query.

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

For instance in geocode function you have:

image

If you deploy with this config, users can call it on table of 10 rows maximum.

Remove the quotas entries in this yaml before redeploying

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

The email address given in error is configured in your config.yaml at field quota_contact

from bigfunctions.

unytics avatar unytics commented on June 1, 2024

When you deploy for the first time (since I made the modification) it will ask you this parameter and save it in config.yaml

from bigfunctions.

dmustafic-datafin avatar dmustafic-datafin commented on June 1, 2024

If I make the max_row_per_query parameter in the top of yaml file, like this, is it ok? I still get the same error but with my email this time:

image

from bigfunctions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.