Declarative schedule sync detects false updates when comparing default UTC timezone

Aberta
#5,066 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

  • #5068 de @MilindChatrabhuji — fechado sem integrar
  • #5069 de @MilindChatrabhuji — fechado sem integrar
  • #5087 de @ghazy2001 — fechado sem integrar

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
typescript
Domínio
backend

Direção de pesquisa

Start at syncDeclarativeSchedules and trace how the task schedule's omitted timezone is compared with the database schedule's UTC default. Check the related schedule sync tests, if present, and add coverage for an omitted timezone; done means repeated syncs no longer mark the schedule modified. Pull request #5068 is linked, so check its status before starting.

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

Descrição

When syncing declarative schedules where the task schedule omits an explicit timezone, the sync routine marks the schedule as modified on every deployment. In syncDeclarativeSchedules, comparing the existing database schedule timezone ("UTC") against the undefined task schedule timezone triggers an unnecessary schedule update.

Can send a quick PR normalizing timezone defaults before the diff check if that helps!

Linguagem predominante
TypeScript
Estrelas
16.5k
Forks
1.5k
Merge médio
1d 15h
PRs com merge (30d)
17

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

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 triggerdotdev/trigger.dev

Todas as issues de triggerdotdev/trigger.dev

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

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