/d/programming and /d/oniondev are probably better.
well, many hidden services do have some features which is function that trigger itself after a while like finalizing an order automatically for example,how its possible to assign a cron job for every user using node js?,is making a cron job that checks for time is better approach or what?
what do you mean assign a cron job for every user?
cron jobs are ran on a timer, like every 5 seconds of every 6 hours
aside from cron jobs, you can create "listeners" in a variety of ways that listen for certain events and execute other events (but its not a cron job)
aside from cron jobs, you can create "listeners" in a variety of ways that listen for certain events and execute other events (but its not a cron job)
1: Create a script to detect and action what ever it is you want to automate. For example to automate auto-finalize first you would check if 14 days have passed, and if the order status has not been manually finalized by the buyer, then amend the DB as necessary. Loop.
2: Setup a cronjob to execute your script every x minutes. The size of your database/load should be considered when picking the time to execute your script. Large DB will slow your server if ran every second. Find a middle ground so the servers not overloaded.
2: Setup a cronjob to execute your script every x minutes. The size of your database/load should be considered when picking the time to execute your script. Large DB will slow your server if ran every second. Find a middle ground so the servers not overloaded.
I personally run a cron job using a node/typescript to keep my services up as much as possible if it detects Tor is having difficulties with requests it logs and restarts it and then tries again a couple times before giving up. I'm glad people are realizing node is a great scripting langue. You can do a lot of great automation with it.
you just need to make good indexing it's really not too heavy, depending on database TTL exists too, like Mongo so you can have self expiring documents based whatever you decide is an expiration or even just based on creaetdAt time stamp
If you have to ask maybe you should not be making a marketplace.
who said it was market?,how do u think people get info these days?,already found a solution but i might discover a more practical one
just needed it to check for expiration date of something then it just do something to the expired thing