Code Monkey home page Code Monkey logo

gds's Introduction

Gds

GitHub release (latest SemVer) Go API Reference TODOs

A Raft-based embedded job scheduler for your Go projects.

Features

  • Disaster tolerance: if not all of the hosts are down, the job should be fired successfully.
  • Validity: only one host runs each job.
  • Schedule strategy.
  • Automatic panic recovery.

Examples

The Examples folder contains a bunch of code samples you can look into.

Custom job types

All jobs implementations have to satisfy jobs/Job interface. Internal job state such as counters should only change in PostExecution method. PostExecution method is called on each node in cluster in order to provide consistency. NextTriggerTime method is idempotent and can be called many times, it have to return zero time.Time if job is finished. Job struct fields have to be public in order to marshal/unmarshal correctly or covered by Marshal/Unmarshal methods.

Note that all nodes in cluster must register the same JobExecutors because all nodes store full jobs state.

Planned

  • Implement new Job types
  • Add sync.Pool to cluster.prepareCommand()
  • Library API improvements

Development

Gds uses go modules and Go 1.13
Checks before commit:

golangci-lint run
go test ./... -race

License

MIT

gds's People

Contributors

pymq avatar gr-dv avatar

Stargazers

Brando avatar GAURAV avatar elvuel avatar tongxingwy avatar Zafar Ansari avatar d1slike avatar

Watchers

James Cloos avatar  avatar

gds's Issues

TODO Comments on tickgit.com

Hi there! I noticed you have a link in the README to tickgit.com! I just wanted to let you know we have support for badges:

TODOs

[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/integration-system/gds)](https://www.tickgit.com/browse?repo=github.com/integration-system/gds)

And also let you know that todos.tickgit.com now forwards to www.tickgit.com. We have many more features planned, I hope you find the project interesting. Feel free to let me know what ways we can improve it if you have suggestions!

Thanks so much

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.