Skip to content

Commit

Permalink
feat: POC: brrr lib & demo
Browse files Browse the repository at this point in the history
Functional POC.

Co-authored-by: Jesse Zwaan <[email protected]>
  • Loading branch information
hraban and jkz committed Dec 8, 2024
1 parent c765e81 commit f754c31
Show file tree
Hide file tree
Showing 24 changed files with 1,965 additions and 845 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.py]
indent_style = space
indent_size = 4
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on:
pull_request:
push:

name: Syntax
jobs:
nocommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "nocommit checker"
uses: nobssoftware/nocommit@v2
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
.venv
.venv
.envrc
.terraform*
data
__pycache__
result
.direnv
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Brrr: high performance workflow scheduling

Brrr is a POC for ultra high performance workflow scheduling.

## Copyright & License

Brrr was written by Hraban Luyat and Jesse Zwaan. It is available under the AGPLv3 license (not later).

See the [LICENSE](LICENSE) file.
42 changes: 42 additions & 0 deletions brrr-demo.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright © 2024 Brrr Authors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# Brrr-demo module for process-compose-flake

{ config, pkgs, name, lib, ... }: {
options = with lib.types; {
# You’ll want to override this unless you use an overlay
package = lib.mkPackageOption pkgs "brrr-demo" { };
args = lib.mkOption {
default = [];
type = listOf str;
};
environment = lib.mkOption {
type = types.attrsOf types.str;
default = { };
example = {
AWS_ENDPOINT_URL = "http://localhost:12345";
};
description = ''
Extra environment variables passed to the `brrr-demo` process.
'';
};
};
config = {
outputs.settings.processes.${name} = {
environment = config.environment;
command = "${lib.getExe config.package} ${lib.escapeShellArgs config.args}";
};
};
}
269 changes: 0 additions & 269 deletions brrr.py

This file was deleted.

Loading

0 comments on commit f754c31

Please sign in to comment.