Skip to content

Unsilence may try to cancel a task that doesn't exist due to a bot restart #1053

@MarkKoz

Description

@MarkKoz

Tasks aren't re-scheduled upon a restart, so they won't always exist. To avoid the warning, we can either add a simple check that the tasks exists before cancelling. Alternatively, we can cache the silenced channels in redis and re-schedule tasks when the bot restarts. A notification is supposed to be sent if there are active silenced channels during shutdown, but this mechanism is a victim to #1012.

I prefer the re-scheduling option. Does anyone else have thoughts on which way to go?

Metadata

Metadata

Assignees

Labels

a: moderationRelated to community moderation functionality: (moderation, defcon, verification)p: 2 - normalNormal Prioritys: planningDiscussing detailst: bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions