Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RunJobAndPollAsync - non-deterministic order of results #394

Open
michal-gajek-lingaro opened this issue Jan 18, 2021 · 1 comment
Open

Comments

@michal-gajek-lingaro
Copy link

When using RunJobAndPollAsync with multiple batches in one call, I've an occasional issue caused by (apparently) non-deterministic order of the results (order of batches).

I'm sending a list of two batches, 20 and 5 items respectively.
Sometimes what I receive is two lists of results, 5 and 20 items, respectively.
(Please see the debugger screenshot below)

This makes it impossible to determine which result item corresponds to which batch item. Am I missing a better way to match results to input items?

image

@marcin-rogoz94
Copy link

@michal-gajek-lingaro I encountered same problem. Based on issue activity I can assume that it will not be fixed.

I assume you found solution but it may be helpful for someone else. As a workaround you can write custom Run and Poll logic with help of RunJobAsync, PollBatchAsync and GetBatchResultAsync methods (here is link to core implementation -

public async Task<List<BatchResultList>> RunJobAndPollAsync<T>(string objectName, string externalIdFieldName, BulkConstants.OperationType operationType,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants