Skip to content

Commit f772e71

Browse files
committed
debug
1 parent 9de2886 commit f772e71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

st2common/st2common/policies/concurrency.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
# limitations under the License.
1515

1616
from __future__ import absolute_import
17+
18+
import os
19+
20+
from oslo_config import cfg
21+
1722
from st2common.constants import action as action_constants
1823
from st2common.policies import base
1924
from st2common.services import coordination
@@ -30,6 +35,7 @@ def __init__(self, policy_ref, policy_type, threshold=0, action="delay"):
3035
self.policy_action = action
3136

3237
self.coordinator = coordination.get_coordinator(start_heart=True)
38+
raise ValueError(f"ST2TESTS_REDIS_HOST={os.environ.get('ST2TESTS_REDIS_HOST')} url={cfg.CONF.coordination.url} coordinator={self.coordinator}")
3339

3440
def _get_status_for_policy_action(self, action):
3541
if action == "delay":

0 commit comments

Comments
 (0)