Code Monkey home page Code Monkey logo

Comments (5)

loriab avatar loriab commented on August 16, 2024

I am usually a fan of custom error classes for flow management, so I like this idea.

Categories look good, though I suspect they're what the upstream manager wants to know more than than what the throwing program knows about its situation.

  • ResourceError - (recoverable or non-recoverable) req'd memory not allocatable (rc), available disk not sufficient (nrc if same resource; rc if alternate resource)
  • RandomError - (rc) PSIO error
  • InputError - (nrc) what were once psi4.ValidationErrors

I thought pymatgen was going to be more helpful than it turned out:

https://github.com/materialsproject/pymatgen/blob/76a66990113cf9a11f908e1aba643f19c6abca68/pymatgen/io/abinit/events.py#L767-L877

https://github.com/materialsproject/pymatgen/blob/76a66990113cf9a11f908e1aba643f19c6abca68/pymatgen/io/abinit/tasks.py#L1299-L1304

from qcengine.

dgasmith avatar dgasmith commented on August 16, 2024

Yea, I had poked through there as well without finding too much.

Is the ResourceError a SetupError or vice versa? Not sure if we need to delineate between the two, either way they are recoverable and rerun on another worker I think.

from qcengine.

loriab avatar loriab commented on August 16, 2024

I was thinking ResourceError was a more concrete name for SetupError.

from qcengine.

dgasmith avatar dgasmith commented on August 16, 2024

So we have:

  • InputError - (non-recoverable) error in the user input (e.g., incorrect keyword or method)
  • ResourceError - (recoverable) example: scratch directory is not writeable, not enough memory
  • ConvergenceError - (recoverable) likely requires options tweaking to enhance iterative convergence.
  • RandomError - (recoverable) random seg fault or the like (SIGSEV, PSIO, etc).

I think that's a pretty good list to get started?

from qcengine.

dgasmith avatar dgasmith commented on August 16, 2024

Closed in #69.

from qcengine.

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.