bomi
bomi
Explore posts from servers
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
The lesson here for me is to not modify anything else on the test bot ever because then I'll have a red herring like this
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Im nto sure which message to mark as sollution
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Thanks for all the help
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Sorry about that, lesson learnt I hope
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
That old junk needing to be loaded in is what took 7600ms in loadall
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
I've red-herringed everyone because I deleted some old junk on the test bot
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Yeah the times it took 8000ms was then require cache was empty
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
oh my god
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Yeah it "should" take 300-400ms as it does when it does not take 8000+ms
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
But here's the most basic boiled down version
let startTime = Date.now()
await botclient.stores.get('commands').loadAll();
message.channel.send("LoadAll took " + (Date.now() - startTime) + "ms")
return
let startTime = Date.now()
await botclient.stores.get('commands').loadAll();
message.channel.send("LoadAll took " + (Date.now() - startTime) + "ms")
return
(This is in a command) For unknown reasons (Which is what I think is user activity), it takes 8000ms sometimes
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Oh that would explain why it needs to be done twice
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
The reason I say that it's reliant on active users is that I have the same code running on another bot account, and it does not happen, I have nto managed to get it to happen once with that account... T_T
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
if I has a feedback loop it'd have multiple console logs, right?
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
1 sec ill boil it down as much as possible
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
I'm not sure what you mean by entire here, sorry
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
Multithreading
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
I might have been falling for a red herring this whole time. it might as well be at each loadall only blocks it's own client.
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/23/2023 in #sapphire-support
.loadAll() blocks all shards?
A workaround for now is to wait 3 seconds between reloading on each shard... This seems like it causes a small freeze each time, but it's less disruptive
42 replies
SIASapphire - Imagine a framework
Created by bomi on 5/22/2023 in #discordjs-support
broadcastEval blocks all shards
It was not related to broadcastEval, it doesn't matter how it's called. The problem is loadall().
4 replies