Skip to content

Fix 50 plus category creation discord bot#501

Merged
JJ-8 merged 2 commits intomainfrom
fix-50-plus-category-creation-discord-bot
May 24, 2025
Merged

Fix 50 plus category creation discord bot#501
JJ-8 merged 2 commits intomainfrom
fix-50-plus-category-creation-discord-bot

Conversation

@JJ-8
Copy link
Collaborator

@JJ-8 JJ-8 commented May 24, 2025

Since we do not support batch importing tasks, the frontend spams the backend with a lot of task creations.
Due to throttling from Discord, it fails to create the extra Discord category for 50+ challenges.
This will break the channel creation.

So the fix for this without supporting batch import, is to import with batches from 10 where each first task is done in serial and the other 9 in parallel.

JJ-8 added 2 commits May 24, 2025 10:42
Since we do not support batch importing tasks, the frontend spams the backend with a lot of task creations.
Due to throttling from Discord, it fails to create the extra Discord category for 50+ challenges.
This will break the channel creation.

So the fix for this without supporting batch import, is to import with batches from 10 where each first task is done in serial and the other 9 in parallel.
The `createTasks` function is now a bit overly complex but it is at least faster,
and still the 50+ channel creation works properly now.
@JJ-8 JJ-8 merged commit 118d6bf into main May 24, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant