Timing out requests - Jobs, Schedules

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
Tiago Valente
Posts: 89
Joined: Wed Sep 25, 2019 4:30 am

Timing out requests - Jobs, Schedules

Post by Tiago Valente » Thu Nov 26, 2020 8:49 pm

Hi SIMPRO,

My API which concurrently downloads Jobs, Employees, Schedules is hanging as below.

Nothing has changed code wise or environment wise on our end. When I rerun the code the next day I have no issue. Our process starts at 7pm every night.
Hanging Jobs .jpg
Hanging Jobs .jpg (118.38 KiB) Viewed 5396 times
We have had several weeks of non issue.

Please investigate.

Tiago
Tiago Valente
Posts: 89
Joined: Wed Sep 25, 2019 4:30 am

Re: Timing out requests - Jobs, Schedules

Post by Tiago Valente » Thu Nov 26, 2020 8:57 pm

Please note in my code I'm setting timeout to zero, which is why I'm probably getting no movement (which I may undo today).
rick.lan
Posts: 274
Joined: Wed May 30, 2018 6:14 am

Re: Timing out requests - Jobs, Schedules

Post by rick.lan » Thu Nov 26, 2020 11:54 pm

Hi Tiago,

as far as we know there is no major issues/changes to infra that could cause problem like that, could you please keep an eye on it and let us know if it happened again?

cheers,
Rick Lan
API Developer | simPRO Software Group
Tiago Valente
Posts: 89
Joined: Wed Sep 25, 2019 4:30 am

Re: Timing out requests - Jobs, Schedules

Post by Tiago Valente » Fri Nov 27, 2020 1:20 am

No worries,

I might re-compile without my timeout = 0 on my code. This might generate errors and will have more to report.

This has happened last two days now. I just re-ran the code and it worked again.
Tiago Valente
Posts: 89
Joined: Wed Sep 25, 2019 4:30 am

Re: Timing out requests - Jobs, Schedules

Post by Tiago Valente » Mon Nov 30, 2020 9:58 pm

The issue is still persisting. Over the weekend no issue.

We had this issue earlier in the year and resolved it by moving our process to later in the night. I suspect your server is maxing out with requests perhaps?

It errored again after starting the process at 7pm last night. Do you have a way of monitoring loads on your server and suggesting times we can extract all data?
Tiago Valente
Posts: 89
Joined: Wed Sep 25, 2019 4:30 am

Re: Timing out requests - Jobs, Schedules

Post by Tiago Valente » Tue Dec 01, 2020 8:33 pm

Hi All,

I was able to produce errors "<class 'concurrent.futures._base.TimeoutError'>". This is the schedule call, where we are pulling 200 records at a time.

Should I reduce this?
Post Reply