Giter Club home page Giter Club logo

nmma-api's Introduction

nmma-api

!!! Work in progress !!!

This is a simple API, which serves as a middleware and mini database (MongoDB) to run NMMA based on analysis requests coming from SkyPortal.

This service uses Expanse (and HPC cluster with CPU and GPU allocations, where we can submit jobs) to run the analyses.

It is composed of 3 distinct micro-services:

  1. The API: receives the analysis requests submitted via SkyPortal, and creates an entry for each of them in the DB, containing the input data, parameters, and the webhook that will be used to post the results back to SkyPortal.
  2. Submission queue: This queue, at a fixed rate, grabs analysis requests from the DB that haven't been submitted yet, and submits the jobs to Expanse.
  3. Retrieval queue: This queue, at a fixed rate, checks if an analysis: finished running, has been running for too long, has failed... and uploads the results back to SkyPortal.

For the deployment, we rely on Heroku. When deployed on Heroku, parameters of the config.yaml file can be overwritten using environment variables. Here is an example: Your config has:

a:
  b: 'blabla'

you can set that value in Heroku's settings with A_B=blabla (capitalized, and _ in between each keys). The data type of the variable will be inferred, and default to string if that is not possible.

nmma-api's People

Contributors

theodlz avatar bfhealy avatar

Watchers

Michael Coughlin avatar  avatar

Forkers

bfhealy

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.