Skip to main content

All Questions

Tagged with
0 votes
0 answers
12 views

REplit + Node JS - How to override local file JSON data

My code snippet works with node js but my actual file “LOCAL_JSON_FILE_PATH” does not update with the new data. I want to remove old data from the file and import new data at set times. My code works ...
Houghtonator's user avatar
0 votes
0 answers
16 views

Node.js cron task. Multiprocessing or parallel?

There is a MongoDB with 100k records and there is a cron task (using the node-cron module) that runs every hour to process these 100k records. The processing itself takes one hour. Could you advise on ...
Takezo4's user avatar
0 votes
0 answers
23 views

how to check in twilio, which number will be used to send text from & to, i need it to be my number & not any random no., how to verify or change?

So i'm a bit new and i tried to do this tutorial but i'm confused about the trial number provided by the twilio and was wondering how can i change it, i have linked the video i was referring to #...
mahek mahto's user avatar
0 votes
0 answers
36 views

getting inconsistent values on my postgres database

I had set up a cron which will update my table in the postgres database by fetching values from redis , the cron runs every 10 minutes . The values will be updated in the DB if same date data is ...
Karan's user avatar
  • 1
0 votes
2 answers
57 views

How to build a nestjs reminder function

In nestjs i have a POST api to add a Date object which is the date and time to send a notification to mobile app. So i need to check for all users, which all reminders are reached so that i need to ...
Ghosty's user avatar
  • 1
0 votes
0 answers
56 views

Knock notification service not working calling from a cron job in NextJS

I am deveolping a web app in React, NextJS and I'm using Knock as notification system for sending in-app notifications when some event happens. In this case i want to send a notification to all users ...
Andrea Catani's user avatar
0 votes
1 answer
74 views

How can i use a nestjs service function in a typescript file?

I have a service with a specific function and i have a controller with a route that executes the service function but now i need to execute that function in a cron job, i am using node-cron library. ...
Kevin Corona's user avatar
0 votes
1 answer
43 views

Trouble with cron job scheduling based on activity

I've got a cron.schedule function here that runs the code once every second. When the user is on the website, it displays "In website" and when they enter a game, it shows "In game"...
user avatar
0 votes
1 answer
33 views

How to run Scheduler in a SaaS based platform on their local timezone at everyday 12:00 am?

My server is associated with one timezone. But I want to run the scheduler based on every country's local timezone daily at 12:00am. How can I do that?
S Ahmed Naim's user avatar
0 votes
0 answers
9 views

npm-cron issue with task.stop() from inside another function

npm-cron started from inside a function. But can't stop like, from inside a function. the running continues for infinity. I have to run it in a certain condition until another condition is met. ...
Muhammed Sibly B's user avatar
0 votes
0 answers
21 views

how to apply cronjob to automate execution when specific function called while using ajax

I want to send page data to external resource through cronjob while using cPanel. But when I did it manually it worked while using cronjob it did not worked. here is the actual scripts which I want to ...
Muhammad Irfan's user avatar
0 votes
1 answer
92 views

Js script connects to mongodb but not when executed as cron

I'm connecting to mongodb (on a Ubuntu machine) from a js script; when I execute the command from command line (node <name of the script>) everything works just fine but when I execute the same ...
anto9991's user avatar
0 votes
0 answers
37 views

Agenda js - updating specific job doesn't work

Tried using previous posts with no solution. I got an array of jobs, and for every job I perform scheduleJob: private constructor(mongoUri: string) { const isDev = process.env.NODE_ENV === '...
flow24's user avatar
  • 903
0 votes
0 answers
441 views

nestjs cron runs twice or throwing duplicate job name running

I had @Cron() working before but now I'm trying to add the usage of environment variable instead of giving it a static time. I have read quite a few posts such as https://docs.nestjs.com/techniques/...
Dora's user avatar
  • 6,920
0 votes
0 answers
93 views

How to download ICS (iCal) file perioticly without too much duplicate?

I found out, that I can enable a URL to download Google Calendar events using ISC. I got a url like this https://calendar.google.com/calendar/ical/[email protected]/private-xxx/basic.ics. This url gives ...
Akxe's user avatar
  • 10.9k

15 30 50 per page
1
2 3 4 5
32