-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release v0.0.4: queue topics and module API
chore: set version to 0.0.4.dev chore: convert CRLF to LF in .gitignore refactor: localstack -> dynamodb-local for demo refactor: move tests out of src/ test: fix some linter bugs refactor: hide the ‘brrr’ singleton It leaks API and the name clash with the module is extremely confusing. chore: remove unused asyncrrr.py test: run linter
- Loading branch information
Showing
14 changed files
with
135 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.venv | ||
.envrc | ||
.terraform* | ||
data | ||
__pycache__ | ||
result | ||
.direnv | ||
.venv | ||
.envrc | ||
.terraform* | ||
data | ||
__pycache__ | ||
result | ||
.direnv | ||
|
||
# Noise from dynamodb-local program in the working directory | ||
dynamodb-local-metadata.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# 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/>. | ||
|
||
# Dynamodb module for process-compose-flake | ||
|
||
{ config, pkgs, lib, ... }: { | ||
options.services.dynamodb = with lib.types; { | ||
enable = lib.mkEnableOption "Enable Dynamodb local service"; | ||
args = lib.mkOption { | ||
default = []; | ||
type = listOf str; | ||
}; | ||
dataDir = lib.mkOption { | ||
default = "data/dynamodb"; | ||
type = str; | ||
}; | ||
}; | ||
config = let | ||
cfg = config.services.dynamodb; | ||
in | ||
lib.mkIf cfg.enable { | ||
settings.processes.dynamodb.command = let | ||
bin = lib.getExe pkgs.dynamodb-local; | ||
dir = lib.escapeShellArg cfg.dataDir; | ||
in '' | ||
mkdir -p ${dir} | ||
${bin} -dbPath ${dir} ${lib.escapeShellArgs cfg.args} | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "brrr" | ||
version = "0.0.3" | ||
version = "0.0.4" | ||
description = "Horizontally scalable workflow scheduling with pluggable backends" | ||
authors = [ | ||
{name = "Hraban Luyat", email = "[email protected]"}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from .brrr import Brrr | ||
|
||
# For ergonomics, we provide a singleton and a bunch of proxies as the module interface | ||
brrr = Brrr() | ||
# For ergonomics, we provide a singleton and a bunch of proxies as the module interface. | ||
_brrr = Brrr() | ||
|
||
setup = brrr.setup | ||
gather = brrr.gather | ||
wrrrk = brrr.wrrrk | ||
task = brrr.register_task | ||
schedule = brrr.schedule | ||
setup = _brrr.setup | ||
gather = _brrr.gather | ||
read = _brrr.read | ||
wrrrk = _brrr.wrrrk | ||
task = _brrr.register_task | ||
tasks = _brrr.tasks | ||
schedule = _brrr.schedule |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.