All Projects → cirocosta → Cr

cirocosta / Cr

Runs your tasks at maximum concurrency

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Cr

Pget
The fastest file download client
Stars: ✭ 724 (+6.31%)
Mutual labels:  concurrency, fast
Gridiron
Feature-Packed React Grid Framework
Stars: ✭ 8 (-98.83%)
Mutual labels:  graph, fast
Corium
Corium is a modern scripting language which combines simple, safe and efficient programming.
Stars: ✭ 18 (-97.36%)
Mutual labels:  fast, concurrency
Quickqanava
C++14 network/graph visualization library / Qt node editor.
Stars: ✭ 611 (-10.28%)
Mutual labels:  graph
Transient
A full stack, reactive architecture for general purpose programming. Algebraic and monadically composable primitives for concurrency, parallelism, event handling, transactions, multithreading, Web, and distributed computing with complete de-inversion of control (No callbacks, no blocking, pure state)
Stars: ✭ 617 (-9.4%)
Mutual labels:  concurrency
Continuable
C++14 asynchronous allocation aware futures (supporting then, exception handling, coroutines and connections)
Stars: ✭ 655 (-3.82%)
Mutual labels:  concurrency
Dsa.js Data Structures Algorithms Javascript
🥞Data Structures and Algorithms explained and implemented in JavaScript + eBook
Stars: ✭ 6,251 (+817.91%)
Mutual labels:  graph
Eliasdb
EliasDB a graph-based database.
Stars: ✭ 611 (-10.28%)
Mutual labels:  graph
Depth clustering
🚕 Fast and robust clustering of point clouds generated with a Velodyne sensor.
Stars: ✭ 657 (-3.52%)
Mutual labels:  fast
Goraph
Package goraph implements graph data structure and algorithms.
Stars: ✭ 635 (-6.75%)
Mutual labels:  graph
React Graph Vis
A react component to render nice graphs using vis.js
Stars: ✭ 629 (-7.64%)
Mutual labels:  graph
Alga
Algebraic graphs
Stars: ✭ 619 (-9.1%)
Mutual labels:  graph
Kovenant
Kovenant. Promises for Kotlin.
Stars: ✭ 657 (-3.52%)
Mutual labels:  concurrency
Learningmasteringalgorithms C
Mastering Algorithms with C 《算法精解:C语言描述》源码及Xcode工程、Linux工程
Stars: ✭ 615 (-9.69%)
Mutual labels:  graph
Atreugo
High performance and extensible micro web framework. Zero memory allocations in hot paths.
Stars: ✭ 661 (-2.94%)
Mutual labels:  fast
Lightgraphs.jl
An optimized graphs package for the Julia programming language
Stars: ✭ 611 (-10.28%)
Mutual labels:  graph
System design
Preparation links and resources for system design questions
Stars: ✭ 7,170 (+952.86%)
Mutual labels:  concurrency
Function Plot
A 2d function plotter powered by d3 and interval arithmetic
Stars: ✭ 625 (-8.22%)
Mutual labels:  graph
Cortex M Rtic
Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers
Stars: ✭ 623 (-8.52%)
Mutual labels:  concurrency
P Map
Map over promises concurrently
Stars: ✭ 639 (-6.17%)
Mutual labels:  concurrency

cr 📂

The concurrent runner

Build Status

Overview

cr is a job executor concerned with achieving the highest parallel execution possible.

Given a definition of jobs and their dependencies, it builds a graph that outlines the execution plan of these jobs.

For instance, consider the following plan:

Jobs:
  - Id: 'SayFoo'
    Run: 'echo foo'

  - Id: 'SayBaz'
    Run: 'echo baz'
    DependsOn: [ 'SayFoo' ]

  - Id: 'SayCaz'
    Run: 'echo caz'
    DependsOn: [ 'SayFoo' ]

This plan states that we have 3 jobs to be executed: SayFoo, SayBaz and SayCaz but the last two jobs must only be executed after the first one and in case it succeeds.

To visualize the execution plan we can run it with --graph, which validates the plan and prints out a dot digraph.

# Execute CR telling it where the execution
# plan is (execution.yaml) and that it should
# just print the graph and exit.
cr --file ./execution.yaml  --graph

digraph {
	compound = "true"
	newrank = "true"
	subgraph "root" {
		"[root] SayFoo" -> "[root] SayBaz"
		"[root] SayFoo" -> "[root] SayCaz"
		"[root] _root" -> "[root] SayFoo"
	}
}

# If we pipe this to `dot` and than take the output
# of `dot` we can see the visual representation of the 
# digraph.

cr --file ./examples/hello-world.yaml --graph \
        | dot -Tpng > ./assets/hello-world.graph.png

Spec

---
# Configurations that control the runtime environment.
# These are configurations that can be specified via
# the `cr` CLI (cli takes precedence).
Runtime:
  LogDirectory: '/tmp'  # base directory to use to store log files
  Stdout: false         # whether all logs should also go to stdout     
  Directory: './'       # default directory to be used as CWD


# Map of environment variables to include in every job 
# execution.
# This can be be overriden by job-specific environments
Env:
  FOO: 'BAR'


# Jobs is a list of `Job` objects.
# Each job can have its properties templated
# using results of other jobs, even if they
# depend on the result of a job execution.
Jobs: 
  - Id: MyJob           # name of the job being executed.
    Run: 'echo test'    # command to run
    Directory: '/tmp'   # directory to use as cwd in the execution
    CaptureOutput: true # whether the output of the task should be stored in `.Output` variable
    Env:                # Variables to merge into the environment of the command
      FOO: 'BAR'
    DependsOn:          # List of strings specifying jobs that should be executed before this 
      - 'AnotherJob'    # job and that must exit succesfully.
    LogFilepath: '/log' # Path to the file where the logs of this execution should be stored.
                        # By default they're stored under `/tmp/<NameOfTheJob>`.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].