Skip to content

Commit 0cf78e2

Browse files
committed
small adjustments but is ready to go
1 parent e911b50 commit 0cf78e2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

lib/allora/lib/allora-stack.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ export class AlloraStack extends cdk.Stack {
169169

170170
const instance = singleNode.instance;
171171

172-
const keyPair = new ec2.KeyPair(this, `${resourceNamePrefix}KeyPair`)
173-
174172
// Read user data script and inject variables
175173
const userData = fs.readFileSync(path.join(__dirname, 'assets', 'user-data', 'node.sh')).toString();
176174
const modifiedUserData = cdk.Fn.sub(userData, {

lib/allora/lib/assets/user-data/node.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,8 @@ docker-compose up --build
139139

140140
echo "----------------------------------------------"
141141
echo "[user-data] Allora user-data script successful"
142-
echo "----------------------------------------------"
142+
echo "----------------------------------------------"
143+
144+
145+
#ping the server for an inference response to $ALLORA_WORKER_INFERENCE_ENDPOINT/inference/$ALLORA_WORKER_TOKEN
146+
curl "$ALLORA_WORKER_INFERENCE_ENDPOINT/inference/$ALLORA_WORKER_TOKEN"

lib/allora/sample-configs/.env-sample-full

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MODEL_REPO="https://github.com/allora-network/basic-coin-prediction-node"
88
MODEL_ENV_VARS='
99
TOKEN="ETH"
1010
TRAINING_DAYS="1"
11-
TIMEFRAME="10min"
11+
TIMEFRAME="4h"
1212
MODEL="LinearRegression"
1313
REGION="US"
1414
DATA_PROVIDER="coingecko"

0 commit comments

Comments
 (0)