@@ -590,15 +590,15 @@ WHERE
590
590
workspaces .dormant_at IS NULL AND
591
591
workspace_builds .transition = ' start' ::workspace_transition AND (
592
592
users .status = ' suspended' ::user_status OR (
593
- workspace_builds .deadline != ' 0001-01-01 00:00:00+00' ::timestamp AND
593
+ workspace_builds .deadline != ' 0001-01-01 00:00:00+00' ::timestamptz AND
594
594
workspace_builds .deadline < @now :: timestamptz
595
595
)
596
596
)
597
597
) OR
598
598
599
599
-- A workspace may be eligible for autostart if the following are true:
600
600
-- * The workspace's owner is active.
601
- -- * The provisioner job did not failed .
601
+ -- * The provisioner job did not fail .
602
602
-- * The workspace build was a stop transition.
603
603
-- * The workspace has an autostart schedule.
604
604
(
@@ -610,8 +610,8 @@ WHERE
610
610
611
611
-- A workspace may be eligible for dormant stop if the following are true:
612
612
-- * The workspace is not dormant.
613
- -- * The template has set a time til dormant.
614
- -- * The workspace has been unused for longer than the time til dormancy.
613
+ -- * The template has set a time ' til dormant.
614
+ -- * The workspace has been unused for longer than the time ' til dormancy.
615
615
(
616
616
workspaces .dormant_at IS NULL AND
617
617
templates .time_til_dormant > 0 AND
@@ -622,7 +622,7 @@ WHERE
622
622
-- * The workspace is dormant.
623
623
-- * The workspace is scheduled to be deleted.
624
624
-- * If there was a prior attempt to delete the workspace that failed:
625
- -- * This attempt was at least 24 hours ago>
625
+ -- * This attempt was at least 24 hours ago.
626
626
(
627
627
workspaces .dormant_at IS NOT NULL AND
628
628
workspaces .deleting_at IS NOT NULL AND
0 commit comments