Merged in release/2024-10-11 (pull request #1813)
release/2024-10-11: Hotfix
This commit is contained in:
@@ -29,10 +29,12 @@ if (process.env.NODE_ENV !== "development") {
|
|||||||
// Handling SIGINT (e.g., Ctrl+C)
|
// Handling SIGINT (e.g., Ctrl+C)
|
||||||
process.on("SIGINT", async () => {
|
process.on("SIGINT", async () => {
|
||||||
await tasksEmailQueueCleanup();
|
await tasksEmailQueueCleanup();
|
||||||
|
process.exit(0);
|
||||||
});
|
});
|
||||||
// Handling SIGTERM (e.g., sent by system shutdown)
|
// Handling SIGTERM (e.g., sent by system shutdown)
|
||||||
process.on("SIGTERM", async () => {
|
process.on("SIGTERM", async () => {
|
||||||
await tasksEmailQueueCleanup();
|
await tasksEmailQueueCleanup();
|
||||||
|
process.exit(0);
|
||||||
});
|
});
|
||||||
// Handling uncaught exceptions
|
// Handling uncaught exceptions
|
||||||
process.on("uncaughtException", async (err) => {
|
process.on("uncaughtException", async (err) => {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const taskEmailQueue = () =>
|
|||||||
console.log("Processing reminds for taskIds: ", taskIds.join(", "));
|
console.log("Processing reminds for taskIds: ", taskIds.join(", "));
|
||||||
|
|
||||||
// Set the remind_at_sent to the current time.
|
// Set the remind_at_sent to the current time.
|
||||||
const now = moment.utc().toISOString();
|
const now = moment().toISOString();
|
||||||
|
|
||||||
client
|
client
|
||||||
.request(UPDATE_TASKS_REMIND_AT_SENT, { taskIds, now })
|
.request(UPDATE_TASKS_REMIND_AT_SENT, { taskIds, now })
|
||||||
|
|||||||
Reference in New Issue
Block a user