Anyway to offset a Map/Reduce script? Rather than ...
# suitescript
e
Anyway to offset a Map/Reduce script? Rather than running at 9:00am, 9:15am, 9:30am, etc... I'd like to have it run at 9:05am, 9:20am. etc... Reason being - it handles data that comes in from another M/R script (let's call it M/R#2) that runs at 9:00am, 9:15am, 9:30am, etc. So when my M/R script run, sometimes all the data from M/R#2 has been pulled in... but sometimes it hasn't. As they are server side, I don't believe I can use any sort of setTimeout/equivalent
e
You could execute your second M/R from the first using N/task
💯 4
e
I don't own the other M/R script 😕 It's a Celigo script that pulls Orders into NetSuite from our eCommerce site
Unless there is a way to add some sort of trigger to a script I don't own? e.g. when Script Id 12345 finishes, start Script 55555(??)
e
Yeah, that makes things more difficult when you can't edit the first script
c
If there's a way to tell that the order was imported via the celigo script (UE script that checks some field that celigo sets) you can trigger your N/task off of that.
e
Ahh yes @creece, thats the key. There's a bunch of custom fields Celigo sets on its Sales Orders, I'll throw a UR script on the Sales Orders and trigger my M/R from there. Thank you both @ehcanadian
z
not sure... but let's think about this. way 1.yes, you don't own Celigo script,.but you do own DEPLOYMENTS... 2. change deployments for Celigo script from scheduled to not scheduled 3. create your schedule task which first start ceilgo script and you will be able to track status... when finished start your script... it is easier to draw than write this solution 😂... but I think it's only way