Crons

Status
Not open for further replies.

mandonet

New Member
Messages
2
Reaction score
0
Points
0
I have a script that will run for a long period of time once it is 'ticked.' Basically it will just keep looping over and over again until the time runs out, and then I can tick it again.

Is this allowed, or would that be considered the same as running a cron more frequently than every 5 minutes?

And if so, would a paid account allow me to do this?
 

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
You will find yourself suspended for high resource usage, certainly you couldnt do this on the free hosting accounts.

Im not sure you could run that on a paid account, it would really depend what it does..
 

mandonet

New Member
Messages
2
Reaction score
0
Points
0
It's a browser based game.

Basically it processes attacks. In the game users sends troops to go fight other users but to be realistic, there is a timer set to it. So a user sending an attack over to another users a few blocks over could take a few minutes.

So the script will keep looping in search of attacks that have 'arrived,' (the timer has run out) and it will then process the attacks. Then it will loop again and again until it finds new attacks. This would obviously be database driven.
 
Status
Not open for further replies.
Top