Failed status writes leave jobs counted as running, without a log line

Aberta
#76 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@harryhawwy69 já está trabalhando nisso.

Desde 24/11/2026.

  • #85 de @harryhawwy69 — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
38/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
csharp
Domínio
backend

Direção de pesquisa

Read src/TickerNet/Src/TickerExecutionTaskHandler.cs around the listed error paths (lines ~248, 277, 299, 322, 348, 364) to see where RemoveTickerCancellationToken is skipped when UpdateTickerAsync throws, then look at the swallowed status writes in TickerNetTaskScheduler (~89, 366, 377). Write a test that reproduces a job stuck InProgress after a failed status write and confirm it fails before changing anything. Done means the token removal happens in a finally, failed writes log at error level with the job ID, and the new test passes. Note an open pull request (#85) already targets this, so coordinate before starting.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

.NET bug

What happens

Two problems when writing a job's final status fails:

  • In TickerExecutionTaskHandler (src/TickerNet/Src/TickerExecutionTaskHandler.cs), if UpdateTickerAsync throws in one of the error paths (around lines 248, 277, 299, 322, 348 and 364), RemoveTickerCancellationToken never runs. The job then counts as running until the app restarts, and other runs of the same cron parent are refused with "Another CronOccurrence is already running!".
  • In TickerNetTaskScheduler (around lines 89, 366 and 377), a failed final status write is swallowed without a log line, so the job stays InProgress and nobody knows why.

Fix idea

Remove the cancellation token in a finally, and log failed status writes at error level with the job ID.


Found while checking which problems that TickerQ fixed after the fork still exist in TickerNet. Fix it from this description and TickerNet's own code only: never read or copy code from TickerQ 10.5.0 or later (see CONTRIBUTING.md). Please add a test that fails before the fix.

Linguagem predominante
C#
Estrelas
0
Forks
2
Merge médio
1h 8min
PRs com merge (30d)
24

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de TickerNet/TickerNet

Todas as issues de TickerNet/TickerNet

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.