label-studio-sdk icon indicating copy to clipboard operation
label-studio-sdk copied to clipboard

fix: get_projects() with pagination

Open makseq opened this issue 10 months ago • 2 comments

makseq avatar Apr 22 '24 21:04 makseq

Hi - this is roughly the approach I was envisioning, but do you want to bump page_size a little higher to 30 (or even 100?). This would result in fewer API calls and I know there's some rate limiting that heartex does.

tsr10 avatar Apr 23 '24 15:04 tsr10

@tsr10 I've set 25 projects per page + added sleep(0.5) to avoid rate limits. Have you tested this PR, does it work well?

makseq avatar May 10 '24 02:05 makseq