Dark Web Talk

cron jobs used in hidden services

Started by deleted-dd5f43ed · Dec 20, 2025

#3604
↳ Replying to @deleted-dd5f43ed
/d/programming and /d/oniondev are probably better.
#3605
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?
#3606
↳ Replying to @deleted-dd5f43ed
what do you mean assign a cron job for every user?
#3607
↳ Replying to @deleted-dd5f43ed
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)
#3608
↳ Replying to @deleted-dd5f43ed
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.
#3609
↳ Replying to @deleted-dd5f43ed
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.
#3610
↳ Replying to @desnelweg
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
#3612
↳ Replying to @Xanary
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
#3613
↳ Replying to @deleted-dd5f43ed
just needed it to check for expiration date of something then it just do something to the expired thing