Resuming Iterators After Application Crashes: Retrieving 'nextLink' for Continuity #547
-
Hello, I am currently working with iterators and have noticed that each page obtained by the iterator contains a "nextLink" internally. While going through your documentation, I came across the ability to pause the iterator. However, I have a concern regarding the possibility of my application crashing. In such a scenario, I would like to know if there is a way to resume the iterator from the exact point where the crash occurred. Is it possible to obtain each "nextLink" received by the iterator during iteration for this purpose? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @luigi-fast, To answer your question, that would be yes, for example you can access the value of the next link property for example on the model However, its important to note, you might want to manage the |
Beta Was this translation helpful? Give feedback.
you do not need a callback to track the nextlink, you can always get the value within the iteration function and store it somewhere as it will change after each successful iteration.
As for the ability to resume, here is a function you can use