Failed status writes leave jobs counted as running, without a log line
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 38/100
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
What happens
Two problems when writing a job's final status fails:
- In
TickerExecutionTaskHandler(src/TickerNet/Src/TickerExecutionTaskHandler.cs), ifUpdateTickerAsyncthrows in one of the error paths (around lines 248, 277, 299, 322, 348 and 364),RemoveTickerCancellationTokennever 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 staysInProgressand 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
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TickerNet/TickerNet
-
.NET bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
.NET enhancement good first issue roadmap
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Document PathBase inside the dashboard branch and WebDAV on IISTalvez já em andamento @harryhawwy69 assumiu hoje. Abertadocumentation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 40/100
Mantenedores costumam responder em até 1 dia
-
TickerFunctionProvider's registry is publicly writableTalvez já em andamento @harryhawwy69 assumiu hoje. Aberta.NET bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
Mantenedores costumam responder em até 1 dia
-
Cron editor accepts 7 for Sunday, then saving fails with a generic errorTalvez já em andamento @harryhawwy69 assumiu hoje. Abertabug good first issue javascript
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 38/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TickerNet/TickerNet
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
dotnet-outdated/dotnet-outdated#871 ·
Mantenedores costumam responder em até 1 dia
-
triage/untriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
unoplatform/uno#26676 ·
Mantenedores costumam responder em até 1 dia
-
[问题] 导出文件时,提示后面还有1243390911步Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
jhaizhou-ops/S2Arm#2177 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
area-CodeGen-coreclr untriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
dotnet/runtime#138181 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
CO spearhead is too loudAbertaS: Untriaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
Mantenedores costumam responder em até 2 dias