Scheduled task pattern broken?
Hello, I started using plugin for scheduled tasks and when I do
* * * * *
pattern which is for every minute, it's being multi-executed every second30 Replies
Really weird
Now it's being executed every 2-3 seconds or every 5 then every 1
Also when I use
interval
with like 5000 it's being ran every second or some random timemaybe it's good to try to look what values are actually stored in redis problem can be in bullmq or something else idk
it doesnt matter
if i put pattern every minute it should be every minute
not every 2-3 seconds, then every 5 seconds, then every 1 second
like randomly
I mean yeah but you need to debug it somehow to get understanding why it can work like this
it can be the plugin that is broken, or bullmq, or both, or even your redis setup idk
redis is just redis 7 pterodactyl egg
untouched
idk how can that be a problem
try to set timeZone
for the task
I wonder if that will help lmao
for every minute? I don't think so
it's not working for interval too
idk bro, just try
not just pattern
just a sec
oh this is interesting
now it's working? xd
when I changed
db
in bull options
it worked
are the patterns saved?
like if i start bot with 1 minute
it can't be changed to 5 minutes
lmaoyeah tasks are set in place
and even those that aren't in your code will be executed
xd
wdym
or thats not the case
try to delete file with your task
and launch bot
it should execute it anyways
wtff why
can i disable bull saving crons to redis
lmao
no
because they USE redis
under the hood
that's dumb lol
idk who needs that
I mean
redis is the way
to execute those persistently
or how do you write that word
yeah but crons shouldn't use redis
there's no need lmao
only tasks like to unmute user
i mean
they work as that with redis, so why not
it's just "mixed"
oh no it's not cuz of redis
you can have cron tasks, or those that you can execute manually
i literally just reinstalled redis
removed every file
and put this pattern
*/5 * * * * *
and it's working every second🤔
actually this is more like every 500ms
5 of them are executed in a second
LMAO
even with
removeOnComplete
, same thing happensSolution
What is BullMQ | BullMQ
General description of BullMQ and its features
Can I prevent it from saving to redis or something
