Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

API1: write datasetUpdateHandler #8

Open
cellisco opened this issue May 20, 2015 · 0 comments
Open

API1: write datasetUpdateHandler #8

cellisco opened this issue May 20, 2015 · 0 comments
Assignees

Comments

@cellisco
Copy link
Contributor

code: opendataplus/apps/datasets/dataset_update_handler.js

Main dataset module that evals all datasets defined in the platform to see if then need updating and orchestrates executing the update...

Main generic function that tracks the last time the dataset was checked and the frequency its is supposed to be checked and if it needs to be checked, orchestrates calling the dataset handlers.

  • check frequency
  • if time to update
    • execute dataset's checkForUpdate module
    • if true
      • execute dataset's "handleDatasetUpdate" module
      • for each document in the dataset
        • if document has not been updated longer than datasetParameter.documentRetentionTime
          • execute dataset's handleExpiredDocuments module for that document
@cellisco cellisco changed the title write datasetUpdateHandler API1: write datasetUpdateHandler May 20, 2015
@ximsce ximsce assigned ximsce and unassigned ximsce Jun 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants