Updated Files
/Analytics/app.py - add PredicitionResults and UserPredictions
/Analytics/create_celery.py - updated celery's configuration to include the configuration values of the Flask app
/resources/request_for_data.py (RequestForPrediction class)
added user_id as an argument to the GET request so that predictions can be associated can now be associated with users. \
updated task state to FAILURE when an error occurs in get_prediction
used a celery logger in the get_prediciotns method to log the reason for failure
saved predictions in PredictionResutls table and associated predictions with users in the UserPredictions table
the status of all executed celery tasks can now be viewed by not passing a task_id argument
New Files
/models/UserPrediction - the data model class for associating user IDs with prediciton result IDs
/models/PredictionResults - the data model class used for storing the time series results generated by users
Updated Files /Analytics/app.py - add PredicitionResults and UserPredictions /Analytics/create_celery.py - updated celery's configuration to include the configuration values of the Flask app /resources/request_for_data.py (RequestForPrediction class)
/resources/request_for_data.py (PredictionStatus class)
New Files
/models/UserPrediction - the data model class for associating user IDs with prediciton result IDs /models/PredictionResults - the data model class used for storing the time series results generated by users