1

Problem with sdk limitations report/exect_report

Тема: Problem with sdk limitations report/exect_report

I will can try explain Wich is my problem.

I built an app whith the finally to administrate fuel. in a minor scale this functionally very good the problem is when i used this with a several units and data.

One module of my app is compare the fuel disptached  by the dispenser with the fuel fiilling in the receptor unit. for example i have 13 dispensing units, i recive this response for a month of data from one of my units. in many modules i do the same proccess

{"success":"ok","response":[{"dispensador":"13050266 PCZ-7816(AZG079) MEO3","volumen":" lt","total":9609.06,"dias":[{"total":1151.08,"fecha":"2018-02-01","despachos":[{"unidad":"13040122 (AZG077)","id":16223034,"inicio":"2018-02-01 11:40:14","fin":"2018-02-01 11:56:11","dispensado":"1151.08","llenado":"---","error":"---","class":"---"}]},{"total":364.63,"fecha":"2018-02-02","despachos":[{"unidad":"13040069 (AZG099)","id":16222797,"inicio":"2018-02-02 16:09:42","fin":"2018-02-02 16:16:17","dispensado":"364.63","llenado":"---","error":"---","class":"---"}]},{"total":396,"fecha":"2018-02-08","despachos":[{"unidad":"13040069 (AZG099)","id":16222797,"inicio":"2018-02-08 08:25:54","fin":"2018-02-08 08:33:09","dispensado":"396.00","llenado":"---","error":"---","class":"---"}]},{"total":550.46,"fecha":"2018-02-11","despachos":[{"unidad":"13040069 (AZG099)","id":16222797,"inicio":"2018-02-11 17:00:59","fin":"2018-02-11 17:11:00","dispensado":"550.46","llenado":"---","error":"---","class":"---"}]},{"total":567.11,"fecha":"2018-02-13","despachos":[{"unidad":"13040116 (AZG116)","id":16222839,"inicio":"2018-02-13 14:27:43","fin":"2018-02-13 14:37:20","dispensado":"567.11","llenado":"---","error":"---","class":"---"}]},{"total":1111.67,"fecha":"2018-02-15","despachos":[{"unidad":"13040122 (AZG077)","id":16223034,"inicio":"2018-02-15 13:06:43","fin":"2018-02-15 13:24:41","dispensado":"1111.67","llenado":"---","error":"---","class":"---"}]},{"total":172.53,"fecha":"2018-02-16","despachos":[{"unidad":"13040069 (AZG099)","id":16222797,"inicio":"2018-02-16 10:37:18","fin":"2018-02-16 10:44:34","dispensado":"172.53","llenado":"---","error":"---","class":"---"}]},{"total":0.07,"fecha":"2018-02-19","despachos":[{"unidad":"13040122 (AZG077)","id":16223034,"inicio":"2018-02-19 13:31:24","fin":"2018-02-19 13:32:29","dispensado":"0.07","llenado":"---","error":"---","class":"---"}]},{"total":611.01,"fecha":"2018-02-20","despachos":[{"unidad":"13040046 (AZG128)","id":16222785,"inicio":"2018-02-20 11:19:04","fin":"2018-02-20 11:28:38","dispensado":"611.01","llenado":"---","error":"---","class":"---"}]},{"total":495.81,"fecha":"2018-02-21","despachos":[{"unidad":"13030012 (AZG094)","id":16223076,"inicio":"2018-02-21 08:39:26","fin":"2018-02-21 08:42:42","dispensado":"138.52","llenado":"---","error":"---","class":"---"},{"unidad":"13030014 (AZG096)","id":16223086,"inicio":"2018-02-21 08:47:00","fin":"2018-02-21 08:50:27","dispensado":"146.06","llenado":"---","error":"---","class":"---"},{"unidad":"13030014 (AZG096)","id":16223086,"inicio":"2018-02-21 20:24:04","fin":"2018-02-21 20:26:54","dispensado":"106.79","llenado":"---","error":"---","class":"---"},{"unidad":"13030012 (AZG094)","id":16223076,"inicio":"2018-02-21 20:50:17","fin":"2018-02-21 20:54:40","dispensado":"104.44","llenado":"---","error":"---","class":"---"}]},{"total":815.62,"fecha":"2018-02-22","despachos":[{"unidad":"13030012 (AZG094)","id":16223076,"inicio":"2018-02-22 09:14:01","fin":"2018-02-22 09:22:12","dispensado":"326.99","llenado":"---","error":"---","class":"---"},{"unidad":"13040093 (AZG111)","id":16222802,"inicio":"2018-02-22 14:17:48","fin":"2018-02-22 14:25:03","dispensado":"488.63","llenado":"---","error":"---","class":"---"}]},{"total":239.19,"fecha":"2018-02-23","despachos":[{"unidad":"13030014 (AZG096)","id":16223086,"inicio":"2018-02-23 08:57:22","fin":"2018-02-23 09:00:53","dispensado":"138.02","llenado":"---","error":"---","class":"---"},{"unidad":"13030014 (AZG096)","id":16223086,"inicio":"2018-02-23 22:38:02","fin":"2018-02-23 22:43:10","dispensado":"101.17","llenado":"---","error":"---","class":"---"}]},{"total":249.16,"fecha":"2018-02-24","despachos":[{"unidad":"13040093 (AZG111)","id":16222802,"inicio":"2018-02-24 07:46:55","fin":"2018-02-24 07:53:17","dispensado":"220.63","llenado":"---","error":"---","class":"---"},{"unidad":"13030014 (AZG096)","id":16223086,"inicio":"2018-02-24 11:49:17","fin":"2018-02-24 11:52:50","dispensado":"28.53","llenado":"---","error":"---","class":"---"}]},{"total":1440.87,"fecha":"2018-02-27","despachos":[{"unidad":"13040116 (AZG116)","id":16222839,"inicio":"2018-02-27 17:05:34","fin":"2018-02-27 17:26:24","dispensado":"907.05","llenado":"---","error":"---","class":"---"},{"unidad":"13040046 (AZG128)","id":16222785,"inicio":"2018-02-27 22:16:32","fin":"2018-02-27 22:30:31","dispensado":"462.74","llenado":"---","error":"---","class":"---"},{"unidad":"13030012 (AZG094)","id":16223076,"inicio":"2018-02-27 23:22:56","fin":"2018-02-27 23:25:56","dispensado":"71.08","llenado":"---","error":"---","class":"---"}]},{"total":1443.85,"fecha":"2018-02-28","despachos":[{"unidad":"13040122 (AZG077)","id":16223034,"inicio":"2018-02-28 11:20:32","fin":"2018-02-28 12:11:34","dispensado":"1443.85","llenado":"---","error":"---","class":"---"}]}]}]}


For all elements on this response i need execute a fuel filling report to the interval especificated on the response, you can see this time intervals are too short, so that this reports are very quickly, I decided execute this in a batch request on 1 day of my response is a new request of fuel fillings, making this batch request in this way, the time excution variaty between 0.5 and 3 seconds (depending the number of intervals to evaluate) is very very fast my problems is the limitation report on sdk 30 execute/report in 60 seconds, when i try an more bigger interval time my responses has a so many intervals to evaluateand this limitacion interrup my script, If i try execute interval per interval without batch i have the same problem. I eve tried stop a few seconds (2 seconds) my script, but this execution time is very to long. minimun 2 seconds per fuel filling, if a have an 350 intenvals I need wait 350*n seconds, for this motiv i decided execute per day and stop the script in a batch but neither works.

If I do a batch run, where I run 100 reports with a super short evaluation time like my case the sdk takes it as a single report execution or as 100 because if that is the case I can increase the number of requests in the batch .

Additionally i have many units dispatching fuel. but i execute unit per unit beacuse i do not have exceed the max execution time of wialon sdk for a single request (2 minutes).

I expected to finish all the executions of fuel dispensers. One by one waiting for one to finish before starting the other, to start getting the fuel filled also day by day in this case waiting for one to finish to start with another (similar to the use of recursion)..

If you confirm that a batch is taken as a single report run, I can try to increase the number of intervals that I will evaluate. and wait for it to wok


Best regards.

2

Problem with sdk limitations report/exect_report

Re: Problem with sdk limitations report/exect_report

Increase the number of request by batch not works I get the same error. 1003 limitations overcome.