|
Can you limit it yourself? Make your code less demanding at a time? Maybe spin off a task on a low priority thread, or sleep it periodically or something?
To err is human. Fortune favors the monsters.
|
|
|
|
|
I'm not sure how to make my code less demanding.
It's just a foreach with some 4000 records, that I put in an Excel file (ultimately a huge XML string).
I'm using Spreadsheetlight for this.
I'm not multi-threading or anything, for as far as I know (I don't even think Spreadsheetlight is thread-safe).
I could use a Thread.Sleep, I guess, but it also need to finish in 10 minutes max because of the Azure Functions limitations.
The task as a whole only takes about three minutes right now (and runs to completion, which is why it's even weirder it still fails).
|
|
|
|
|
Try putting some thread.sleep nonsense in your loop?
To err is human. Fortune favors the monsters.
|
|
|
|
|
YES!!! THIS FIXED THE ISSUE!!!
I already did some googling, you were just a few minutes late.
This is the first time in my career I found a valid use case for Thread.Sleep (although, valid? ).
I didn't even know it could do this.
You learn something new every day I guess
Just a few milliseconds did the trick for my test to work.
I can monitor CPU usage and it seems to stay at around 20%.
Now let's see if it survives a production environment...
|
|
|
|
|
Good luck!
To err is human. Fortune favors the monsters.
|
|
|
|
|
This has bad karma all over it. Then again, I live in the embedded world.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Oh boy, that gives me confidence in Azure. Maybe it's a Microsoft feature that they have a well known history for....?
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
That's a bit like saying "my computer froze this one time and now I don't have confidence in computers anymore."
Although this does limit my confidence in Azure Functions a bit
|
|
|
|
|
Not really . Just Azure. Remember the days when Windows isn't done until <name of="" spreadsheet="" software="" competing="" against="" excel"="" won't="" run?
<div="" class="signature">Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
I've been thrown into the deep end to learn Google's People API. It seems that 99% of the documentation is Google's, which isn't as complete as I figured it would be.
Are the any other resources that I can look into? I need entry level docs.
Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
try one simple demo to pull just one person to play around ...
diligent hands rule....
|
|
|
|
|
|
I'm working on an app that uses it and it's giving us trouble with oAuth & scopes, so I'm looking for a resources outside of what Google prodvides.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
better ask at stack overfloe what u really face as issue
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
|
|
Yes I have.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
My experience from trying to get an app into the store a few years ago has convinced me that the same so terrible the incompetence has to be deliberate group of ing s guilty of what passes for customer service from google are also responsible for making sure that not only are all of their developer docs badly written on upload, but that less than 20% of the out of date documents are updated each time the development team gets bored and deploys breaking changes for the lulz.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
When you say the Google documentation isn't complete I assume you have looked at the developer site as follows:-
Reference
https://developers.google.com/people/api/rest?hl=en
The Top Menu also has links to Guides, Samples and Support (seems reasonable comprehensive)
I was logged in with my Google developer account I don't know if that's a requirement for access, but if you can't access just register and create a developer account.
It always looks impossible till it's done - Nelson Mandela
|
|
|
|
|
Recently a cargo ship with thousands of expensive cars sank and the treehuggers are howling now about the environmental hazard posed by the cars. Am I stupid or are they? Whatever fuel may be left in the cars, it's a joke against the fuel oil in a wreck of this size. And does that not also go for every sunken ship, and not only for one loaded with cars?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Certainly a lack of perspective, not necessarily stupidity. On their part, not yours.
|
|
|
|
|
You are right. It also could be an outstanding work of journalism to bring us the homogenized, pasteurized and politically correct message. Cars bad. Expensive cars even worse. Sunken ship no big deal.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
|
Unless they drive them... then they are okay.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Would be hilarious if they were electric cars.
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|