I have custom source plugin (imports from MongoDB) and when I run migration for the first time like:
drush mim article --limit=10
it works well: 10 articles are being imported and process stops.
But if I repeat that command then only 1 article is imported.
And if I have like 10 imported articles and run again with limit=20 then 10 new ones are going to be imported.
And if I set limit smaller than current number of imported ones then only 1 new row will be imported.
Should command I specified import always 10 new rows (if there are available, unprocessed)?
Any hint is welcome!
(using drush 11.0.7 and Drupal 9.3.12) (edited)
Update:
So it looks like that code which is counting number of processed rows and checking if limit parameter is reached is not working well, that is, it counts also previously processed rows which should not be the case.