Community

submitImage page order is off

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

0

Comments

5 comments

  • Avatar
    Dmitry Mesheryakov

    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.

    0
  • Avatar
    SDK Support Team

    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.

    0
  • Avatar
    Dmitry Mesheryakov

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

    0
  • Avatar
    greatrat00

    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

    0
  • Avatar
    Dmitry Mesheryakov

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

    0

Please sign in to leave a comment.