Posts

Showing posts from February 10, 2019

River Liffey

Image
Principal river of Dublin, Ireland, rising in Co. Wicklow For other uses, see Liffey. River Liffey Boardwalks of Liffey from O'Connell Bridge, in Dublin Location Country Ireland Physical characteristics Source    - location Kippure, County Wicklow  - elevation 500 m (1,600 ft) Mouth    - location Irish Sea at Dublin Bay Length 125 km (78 mi) Basin size 1,256 km 2 (485 sq mi) Discharge    - average Annual: 13.8 m 3 /s (490 cu ft/s) Aug: 3.7 m 3 /s (130 cu ft/s) Dec: 29.8 m 3 /s (1,050 cu ft/s) Basin features Tributaries    - left Ballylow Brook, King's River, Lemonstown Stream, Kilcullen Stream, Pinkeen Stream, Rye Water, Silleachain Stream, Furry Glen Stream, Magazine Stream, Finisk Stream, Bradogue River  - right Sraghoe, Cransillagh, Athdown Brook, Shankill River, Brittas River, Morell River, Griffeen River, Glenaulin Stream, Creosote Stream, Camac River, River Poddle, Stein River, River Dodder T

AWS Lambda recursive, can't success to do it right

Image
0 Hi I would like to recall lambda function when context.getRemaingTimeInMillis() is less the 1 min. So I have this: for (actions of commandArray) { while (context.getRemainingTimeInMillis() > 60000) { switch(actions.action) { case: do something case: etc.. } } } let done = then I check if I am satisfied with results if (done){ save results } else { sendSQS(recurseMessage); } I get infinite loop (ofcourse), but I tried : for (actions of commandArray) { if (context.getRemainingTimeInMillis() > 60000) { switch(actions.action) { case: do something case: etc.. } } else { break; } let done = then I check if I am satisfied with results if (done){ save results } else { sendSQS(recurseMessage); } but it acts weird, it never ex