Skip to content

Commit

Permalink
Fix: type of 'concurrency' changed
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed May 18, 2024
1 parent 6be311d commit 1c32915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cog.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let
cp -r $src $out/src
chmod -R +w $out
# we have to modify cog.yaml to make sure predict: is in there
yj < $src/cog.yaml | jq --arg PREDICT "${config.cog.predict}" '.predict = $PREDICT | .concurrency = ${toString config.cog.concurrency}' \
yj < $src/cog.yaml | jq --arg PREDICT "${config.cog.predict}" '.predict = $PREDICT | .concurrency = ${builtins.toJSON config.cog.concurrency}' \
${if config.cog.train != null then ''| jq --arg TRAIN "${config.cog.train}" '.train = $TRAIN' '' else ""} \
> $out/src/cog.yaml
${cognixcfg.postCopyCommands}
Expand Down

0 comments on commit 1c32915

Please sign in to comment.