Skip to content

Commit

Permalink
Merge branch 'increase-poll-timeout' into 'main'
Browse files Browse the repository at this point in the history
Increase poll delay

See merge request nosana-ci/apps/platform/nosana-node!73
  • Loading branch information
laurensV committed Jan 12, 2024
2 parents 9ae892e + e064834 commit b96e9c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Below is the table of config values that can be set:

| Name | Description | ENV | Default |
|-----------------|------------------------------------------------|------------------------|----------------------------------------|
| **Private key** | **Private key for the node** | `SOLANA_PRIVATE_KEY` | Read from `~/.config/solana/id.jon` |
| **Private key** | **Private key for the node** | `SOLANA_PRIVATE_KEY` | Read from `~/.config/solana/id.json` |
| **Market** | **Address of the Nosana market to use** | `NOSANA_MARKET` | In `~/.nosana-node-config.edn` |
| NFT | Address of the NFT of the node | `NOSANA_NFT` | In `~/.nosana-node-config.edn` |
| Network | Solana network to use | `SOLANA_NETWORK` | In `~/.nosana-node-config.edn` |
Expand Down
2 changes: 1 addition & 1 deletion resources/config.edn
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
:solana-network :devnet
:allowed-ops [:container/run :container/create-volume]
:port 3000
:poll-delay-ms 5000
:poll-delay-ms 10000
:podman-conn-uri "http://localhost:8080"}
4 changes: 2 additions & 2 deletions src/nosana_node/cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
:id :nosana-market]
[nil "--poll-frequency MS" "How often to poll the blockchain in milliseconds."
:parse-fn #(Integer/parseInt %)
:default-desc "5000"
:default-fn (get-env-fn "NOSANA_POLL_DELAY_MS" 5000 #(Integer/parseInt %))
:default-desc "10000"
:default-fn (get-env-fn "NOSANA_POLL_DELAY_MS" 10000 #(Integer/parseInt %))
:validate [#(< 3000 % 60000) "Must be a number between 3000 and 60000"]
:id :poll-delay-ms]
["-h" "--help"]]
Expand Down

0 comments on commit b96e9c7

Please sign in to comment.