handle cancellation of scheduled cron jobs

This commit is contained in:
2025-02-06 19:28:03 +01:00
parent ceb92d066c
commit eec72bb6e2
2 changed files with 104 additions and 48 deletions

View File

@@ -53,6 +53,7 @@ func toDB(dto *domain.Subscription) data.Subscription {
// Delete implements domain.Service.
func (s *Service) Delete(ctx context.Context, id string) error {
s.runner.StopTask(id)
return s.r.Delete(ctx, id)
}