File tree 1 file changed +18
-0
lines changed
src/sentry/runner/commands
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -701,6 +701,23 @@ def check_kafka(containers: dict[str, Any]) -> None:
701
701
)
702
702
703
703
704
+ def check_symbolicator (containers : dict [str , Any ]) -> None :
705
+ options = containers ["symbolicator" ]
706
+ (port ,) = options ["ports" ].values ()
707
+ subprocess .run (
708
+ (
709
+ "docker" ,
710
+ "exec" ,
711
+ options ["name" ],
712
+ "curl" ,
713
+ f"http://{ port [0 ]} :{ port [1 ]} /healthcheck" ,
714
+ ),
715
+ check = True ,
716
+ capture_output = True ,
717
+ text = True ,
718
+ )
719
+
720
+
704
721
class ServiceHealthcheck (NamedTuple ):
705
722
check : Callable [[dict [str , Any ]], None ]
706
723
retries : int = 3
@@ -714,4 +731,5 @@ class ServiceHealthcheck(NamedTuple):
714
731
"clickhouse" : ServiceHealthcheck (check = check_clickhouse ),
715
732
"kafka" : ServiceHealthcheck (check = check_kafka ),
716
733
"vroom" : ServiceHealthcheck (check = check_vroom ),
734
+ "symbolicator" : ServiceHealthcheck (check = check_symbolicator ),
717
735
}
You can’t perform that action at this time.
0 commit comments