update
All checks were successful
Build and Deploy Scheduler / cleaning (push) Successful in 3s
Build and Deploy Scheduler / build_image (push) Successful in 1m31s
Build and Deploy Scheduler / deploy (push) Successful in 53s

This commit is contained in:
teddys48
2026-02-13 10:08:35 +07:00
parent 7d3c68066c
commit ca5d3cc3e0
2 changed files with 26 additions and 18 deletions

View File

@@ -10,3 +10,9 @@ services:
mem_limit: 50m
cpus: 0.01
networks:
- scheduler-net
networks:
scheduler-net:
external: true

View File

@@ -14,7 +14,9 @@ cron.schedule(
async () => {
const module = "Birthday Notification";
try {
let res = await axios.get("http://36.66.3.44:7010/birthday-notification");
let res = await axios.get(
"http://email-notification:9997/birthday-notification",
);
console.log(module, "success", res.data);
} catch (error) {
console.error(module, "error", error.message);
@@ -22,7 +24,7 @@ cron.schedule(
},
{
timezone: "Asia/Jakarta",
}
},
);
cron.schedule(
@@ -31,7 +33,7 @@ cron.schedule(
const module = "Workanniversary";
try {
let res = await axios.get(
"http://36.66.3.44:7010/workanniversary-notification"
"http://email-notification:9997/workanniversary-notification",
);
console.log(module, "success", res.data);
} catch (error) {
@@ -40,7 +42,7 @@ cron.schedule(
},
{
timezone: "Asia/Jakarta",
}
},
);
app.use((req, res) => {