Hello, is there any way to handle system failure(n...
# suitescript
l
Hello, is there any way to handle system failure(netsuite maintenance/upgrade/downtime/) for Schedule script 1.0, can I send an email to admin in that case? and what is use if NLAPISetRecoveryPoint?
n
This is a screen-shot from documentation.
n
If you go in to Help and search NLAPISetRecoveryPoint you will find this relates to scheduled script governance and handling that. It does not relate to failures or system downtime. If NS is down them you won't be running any scripts because... Netsuite is down so it's a moot question unless I'm misunderstanding your question?
n
@NElliott You are correct. The script won't be running if the NS is down. The only possible case this question is valid is if your script is running and in between the server reboot/maintenance is scheduled in which case, the script will abort, and for that he can write a code to mail admins and all.
n
@Nik The question is when the script "aborts" as you put it, will it abort gracefully in a way you can trap or will it just cease to run. I don't know the answer to that as I don;t know what NS's "power down" process involves when they take down the system. If the script has not started I believe it will be in the queue or queued to start when the system comes back up but cannot say with 100% certainty.
n
That does makes sense. Can't say for sure will that actually help because we don't know NS's power down or upgrade methods.
Makes me think back a scenario where this might be actually useful. Can you state a scenario where this happened to you @Lucas
l
@Nik Can't find screen-shot..
@Nik I have Scheduled Script running at 6:00 am in the morning, Just wanted to know that if netsuite provide us any option for handling system fails. If netsuite has downtime at same time, what we should do? Scheduled sctipy basically sends an email to some list of customers, And I don't want to miss any customer..
n
My Bad. Here is it:
k
@Lucas I would have thought you have a checkbox so you know when the customer has been emailed and can exclude those in the list that are to be emailed. Then when it restarts it is only the list that hasnt been sent.
l
Ok this is one option which I have, but can I email my admin that we missed some customers?in same scheduled script, or I may need to write another script?
k
You are still going to need to know which customers have been missed.
n
@Lucas I'm not sure why you would need another script. If you're able to trap the fact it aborted, as the screenshots suggest, just put in the conditional check a couple lines to email whoever you want.
l
Ohk, I have some senarioes. but I guess I got it almost. Thank you very much guys for your time.
n
Happy to help, it's usually me getting help ๐Ÿ˜‰
k
@NElliott SS1.0 Master!!
n
@karlenigma aargh no, don't say that! ๐Ÿ˜„ I'm working on an old piece right now that is 1xSL, 1xClient, 2xSS, all are 1.0 and it's just <ugh> ๐Ÿคจ
k
i don't envy you at all. All i know is ss2.0
Can get by with SS1.0 though.
n
@karlenigma I think they are pretty much the same. Give or take a few things.SS2.0 is just modular version of SS-1.0 on a broad level or so to say.
Map/Reduce excluded lolol
k
they are pretty much the same just easy to understand SS2.0
I can actually use map/reduce no problems at all. Nice little tool to have.
๐Ÿ‘ 1
โœ”๏ธ 2
n
Me too. Just saying cause we don't have that in SS1.0
I can pretty much re-write any script from 1.0 to 2.0 and vice versa.
k
Yeah i have no problem in the conversions.
n
Which is okay. Even if you are unable to write something in SS1.0 you can write in 1.0 and then convert. Which will be funny.