Skip to content

Commit

Permalink
updated worker/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed May 27, 2024
1 parent f651faa commit 6ad5adf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion worker/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
const express = require('express');
const app = express();
const trainJobworker = require('@tiledesk/tiledesk-train-jobworker')

if (process.env.TILELLM_ROLE === 'train') {
const trainJobworker = require('@tiledesk/tiledesk-train-jobworker')
} else {
console.log("Worker non parte!!!!!!!")
}

app.get('/', (req, res) => {
console.log("Tiledesk Trainer Worker Container works!");
if (trainJobworker) {
console.log("(Test Log) trainJobworker: ", trainJobworker);
}
res.status(200).send("Tiledesk Trainer Worker Container works!");
})

Expand Down

0 comments on commit 6ad5adf

Please sign in to comment.