Skip to content

Commit

Permalink
fix(batch-exports): handle null end_at in workflow_id (#20988)
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner authored Mar 18, 2024
1 parent 78c9184 commit 3973f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/batch_exports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,5 @@ class Status(models.TextChoices):
def workflow_id(self) -> str:
"""Return the Workflow id that corresponds to this BatchExportBackfill model."""
start_at = self.start_at.strftime("%Y-%m-%dT%H:%M:%S")
end_at = self.end_at.strftime("%Y-%m-%dT%H:%M:%S")
end_at = self.end_at and self.end_at.strftime("%Y-%m-%dT%H:%M:%S")
return f"{self.batch_export.id}-Backfill-{start_at}-{end_at}"

0 comments on commit 3973f21

Please sign in to comment.