Skip to content

Commit

Permalink
add TODO to find an alternative to start clickhouse-server during init
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Feb 7, 2024
1 parent d01d659 commit 53d9b67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nix/clickhouse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ in
setupScript = pkgs.writeShellApplication {
name = "setup-clickhouse";
runtimeInputs = with pkgs; [ config.package coreutils gnugrep gawk ];
# TODO: Find a better way to start clickhouse-server than waiting for 5 seconds: https://github.com/juspay/services-flake/pull/91#discussion_r1481710799
text = ''
if test -d ${config.dataDir}
then echo "Clickhouse database directory ${config.dataDir} appears to contain a database; Skipping initialization"
Expand Down

0 comments on commit 53d9b67

Please sign in to comment.