Manual task not triggering
im trying to create an unmute task but it doesnt seems to get triggered that reliably
I also tried copy pasting the documentation code for
manual
and it also gets triggered rarely
here are some snippets of my code
UnmuteUserTask.ts
https://raw.githubusercontent.com/TheOreoTM/cardinal-bot/main/src/scheduled-tasks/UnmuteMemberTask.ts
And i call it in a Class i have named Modlog
Modlog.ts
and this class is called in the mute command
Here my are versions
"@sapphire/plugin-scheduled-tasks": "^8.0.0"
"@sapphire/framework": "^4.5.1"
7 Replies
What am i doing wrong?
i have also setup listeners for ScheduledTasksEvents.TaskRun and TaskNotFound
And none of them were helpful
Here is a ss of the logs
and the only occurence when the task actually ran
the
not found expireMute
is my old scheduled task that was on an interval and i had it disabledfraid this will be on the
bullmq
package as the plugin is merely a tiny wrapper around it so you'll have to ask for support at wherever you can get bullmq support.Not sure how much it would help but
container.tasks.create
is async, try throwing an await
in front.hm ok
Also can you inform me on what
removeOnComplete
does exactly?
and where would i use itrefer to the bullmq docs for all the info