Commit 2f26a91
committed
[pycue] Make monitoring imports unconditional
Remove conditional try/except around monitoring proto imports and MONITORING_AVAILABLE flag. Monitoring functions should always be available in pycue - if monitoring is disabled at cuebot level, it will return grpc.Status=UNIMPLEMENTED rather than failing at import.
This allows toggling monitoring at the Cuebot end without requiring a new version of pycue.1 parent b8792e1 commit 2f26a91
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 61 | + | |
| 62 | + | |
70 | 63 | | |
71 | 64 | | |
72 | 65 | | |
| |||
116 | 109 | | |
117 | 110 | | |
118 | 111 | | |
119 | | - | |
| 112 | + | |
120 | 113 | | |
121 | 114 | | |
122 | 115 | | |
| |||
142 | 135 | | |
143 | 136 | | |
144 | 137 | | |
145 | | - | |
| 138 | + | |
146 | 139 | | |
147 | 140 | | |
148 | 141 | | |
| |||
0 commit comments