Skip to content

Commit

Permalink
Merge pull request #1575 from dappnode/pablo/add-param-eth-metrics-da…
Browse files Browse the repository at this point in the history
…emon

Add daemon delay for eth metrics
  • Loading branch information
pablomendezroyo authored Sep 11, 2023
2 parents 16d54d9 + ee126b2 commit 21e0863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/dappmanager/src/daemons/ethicalMetrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export function startEthicalMetricsDaemon(signal: AbortSignal): void {
const runEthicalMetricsTaskMemo = runOnlyOneSequentially(async () => {
try {
await checkEthicalMetricsStatus();
// TODO: register instance WITH EMAIL
} catch (e) {
logs.error("Error on ethical metrics installer daemon", e);
}
Expand All @@ -104,7 +103,7 @@ export function startEthicalMetricsDaemon(signal: AbortSignal): void {

runAtMostEvery(
async () => runEthicalMetricsTaskMemo(),
params.AUTO_UPDATE_DAEMON_INTERVAL,
params.ETH_METRICS_DAEMON_INTERVAL,
signal
);
}
1 change: 1 addition & 0 deletions packages/dappmanager/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const params = {
CHECK_DISK_USAGE_DAEMON_INTERVAL: 1 * MINUTE,
NAT_RENEWAL_DAEMON_INTERVAL: 1 * HOUR,
NSUPDATE_DAEMON_INTERVAL: 1 * HOUR,
ETH_METRICS_DAEMON_INTERVAL: 1 * HOUR,

// IPFS parameters
IPFS_HOST: process.env.IPFS_HOST || process.env.IPFS_REDIRECT,
Expand Down

0 comments on commit 21e0863

Please sign in to comment.