Code Monkey home page Code Monkey logo

leprechaun's People

Contributors

cassiobotaro avatar codacy-badger avatar keisukeyamashita avatar kilgaloon avatar saromanov avatar strahinjadjuric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leprechaun's Issues

Adding new notifications methods

Make use of go plugins and create mechanism to extend usage of notifications and posibility to add new notification systems through plugins

Task priority

Prioritize tasks with following specifications.

If all workers are already populated to maximum, and some high priority task is standing in queue to be executed, take lowest priority task and stop it, move it to queue and wait available worker slot to continue on that task.

Started task can't be paused (needs more investigation), this can be killed and restarted again.

Webhooks

Enable webhooks to trigger recipes, also these recipes can't be scheduled

Recipe lock file should hold information about that recipe

Use yml format inside *.lock file.

Informations in file:

  • Started
  • Current step
  • Errors
  • ErrorMessage (empty if Errors != true)
  • Finished (If finished properly)

If we implement this, we will know did recipe finished properly, next time we can know which recipes to push to queue and which not.

This can take a Locking recipe functionality into considiration for change.

Issues that can be affected: #30 #31

Set PID to client struct

  • Create method that will write PID to pid file and set it in client struct.
  • Rewrite GetPID method to return PID from struct, not to read from pid file every time.

Support server with cmd commands

Wrapper for this already exists.

Take a look at client/commands.go

With latest updates server is supported with basic commands that are coming with agent

Info logs

Every stdout of application needs to end up in info.log

[CLI] Show status of client

Display status of client:

  • Started at
  • Number of workers currently working
  • Recipe currently working
  • Memory usage
  • CPU informations for current process

Define max number of workers

Define how many workers can be spawned.

This can cause that some recipes can't be finished on time, if there is a lot of recipes happening in same time.

Tests

Client

  • Client/Start
  • Client/Stop
  • Client/GetPID
  • Context
  • Lock
  • Main
  • Queue
  • Config
  • Log
  • Recipe/Reader
  • Recipe/Schedule
  • Config/Validate
  • Workers

Create .pid and .lock file

Only one instance of leprechaun can run on system.

Generating .pid file gives us ability to create stop command when process is running in background

Step should not split quoted strings

Example:

echo "some string" > ./file.txt

"some string" will be split and act as 2 different arguments "some and string" and command wont work as expected

Cron scheduler

Recipe definition cron and support same pattern for scheduling recipes

[DRAFT] Plugins

Make usage of plugins and ability to extend leprechaun functionality

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.