Coder Social home page Coder Social logo

Comments (3)

jasonB221 avatar jasonB221 commented on May 28, 2024 2

WRT your second point, could you not add the validation to the DAO itself, so each DAO can decide whether or not it wants to continue execution or error out if the size is too large?

from broadway-api.

ayushr2 avatar ayushr2 commented on May 28, 2024

Yes as @nblei mentioned the two possible solutions we are looking at are:

  • Adding a new optional field here in the grading stage called logs which is true by default. When set to false, the Broadway grader would discard the logs generated.
  • MongoDB has a limit of 4MB (old versions) and 16MB (newest version) of document size. We could calculate log size on the broadway grader and if it is above 4MB, we save logs as:
{
    "stdout": "",
    "stderr": "Logs not saved because it was more than 4MB",
}

My concern with the second solution is that it is very Mongo specific while we have made an attempt to create a DAO layer so people could plug in other databases. #29

Thoughts @nmagerko @rod-lin @bhuvy2

from broadway-api.

nmagerko avatar nmagerko commented on May 28, 2024

Truncation and/or validation in the DAO seems like the way to go for extreme cases, but having a logs option in the grading stage sounds like a very reasonable thing to have as well.

from broadway-api.

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.