Giter Site home page Giter Site logo

aws-gas's Introduction

gas-framework

An enhanced web framework (based on Flask) for use in the capstone project. Adds robust user authentication (via Globus Auth), modular templates, and some simple styling based on Bootstrap.

Directory contents are as follows:

  • /web - The GAS web app files
  • /ann - Annotator files
  • /util - Utility scripts for notifications, archival, and restoration

Job Archive Mechanism Implementation

Completion and Archive Request:

Upon completion of a job, run.py initiates the archival process by sending a restore request to the restore_request_queue. This queue has a configured delay of 5 minutes to begin processing the request.

Archive Process Activation:

After the 5-minute delay, archive.py starts processing the message received in the queue.

Premium User Verification:

The initial step involves verifying if the user holds a premium account status. For non-premium users, the mechanism proceeds to archive the result file.

Job Restore Mechanism Implementation

Premium Plan Upgrade and File Identification

When a user upgrades to a premium plan, the web server queries DynamoDB to identify all files associated with the user that are stored in Amazon Glacier.

Restore Request Initiation

Subsequently, the web server sends a message to the restore_request_queue to initiate the restoration of the identified files.

Restoration Process Start

The restore.py script, running on a utility server, picks up the restoration task and commences the process. It then sends a message to the restore_pendings_queue to track the pending restoration tasks.

Restoration Completion and S3 Transfer

The thaw.py script periodically checks the restore_pendings_queue for any items that have been restored. Once confirmed, it moves these items back to the standard S3 storage, completing the restoration process.

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.