submitImage page order is off

  • 1.4K Views
  • Last Post 05 July 2012
greatrat00 posted this 03 July 2012

Hi,

I am submitting three jpg files with submitImage. Next, when using processFields, the order in which they are getting read is 1, 3, 2; instead of 1, 2, 3 (in the submission order).

What could be causing this?

Thanks, Adam

Order By: Standard | Newest | Votes
Dmitry Me posted this 04 July 2012

Hard to tell without the actual code you use. It might be that different submission requests are executed in parallel and then the behavior is by design.

Vasily Panferov posted this 04 July 2012

This can happen because images can be processed in a cloud in a parallel way by workers in several virtual machines. So if you upload several images, they are distributed among all available workers. E.g. if you uploaded 3 images with processing times 3, 7, 2 seconds, and there are two available workers, you'll get results in order 1, 3, 2.

Dmitry Me posted this 04 July 2012

That may be or may not be the reason depending on actual code OP uses to make requests to the service.

greatrat00 posted this 04 July 2012

The processing times shouldn't be the problem since the problem is now how they are getting returned - it's how they are getting processed.

In other words, the field parameters (in xml file) for page 3 are getting applied to page 2 and vice-versa. How can I prevent this?

Thanks, Adam

Dmitry Me posted this 05 July 2012

@greatrat00: A detailed description of how to reproduce the behavior (preferably with source code and processFields XML settings) would help us identify the problem.

Close