Giter VIP home page Giter VIP logo

scheduler's Introduction

scheduler

Build Status Go Report Card Maintainability

Scheduler is a Go written program designed to orchestrate resource parsing

features

  • use scalable messaging protocol (nats)

how it work

  • The Scheduler process connect to a nats server (specified by env variable NATS_URI) and set-up a subscriber for message with tag doneSubject
  • When an URL is received the scheduler will apply list of crawling rules to determinate if resource is to be crawled
  • If resource should be crawled to scheduler will sent the url to nats with subject todoSubject for the crawlers

crawling rules

Here is the rules that determinate if crawling is to be done:

  • Url has not been already crawled

scheduler's People

Contributors

creekorful avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scheduler's Issues

Fix duplicate persist because of latency

Because it take times for the persister to save content It is possible that the same version of a website is schedule for crawling even if it has been already crawled. This is because the API does not know that the website has been crawled before the persister has saved it.

This should be fix to remote the consistency check done in the persister

Remove forbidden extensions check

Currently the scheduler prevent the crawler from parsing unwanted resources by doing a suffix comparison between the URL and a list of forbidden extensions (taken from database)

This check is partially useless and it would be great to remove it when trandoshan-io/crawler#5 is merged.

(Don't forget to to appropriate change in trandoshan-parent / API)

Allow duplicate website crawling

Currently, the scheduler does not allow the crawling of an already crawled website.

This behavior has to change to support the upcoming website snapshot feature.

The scheduler should use the crawling date and compare to a threshold to determinate if crawling has to be done

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.