File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 40
40
run : make install
41
41
- name : Run tests
42
42
run : bin/test.sh
43
+ - name : Run retry
44
+ env :
45
+ JBI_API_KEY : key # pragma: allowlist secret
46
+ JIRA_API_KEY : key # pragma: allowlist secret
47
+ JIRA_USERNAME : foo@bar
48
+ BUGZILLA_API_KEY : key # pragma: allowlist secret
49
+ DL_QUEUE_CONSTANT_RETRY : false
50
+ DL_QUEUE_DSN : " file:///tmp/dlqueue"
51
+ run : .venv/bin/python -m jbi.retry
43
52
review-dependabot-pr :
44
53
permissions :
45
54
contents : write
Original file line number Diff line number Diff line change 32
32
APP_DIR = Path (__file__ ).parents [1 ]
33
33
34
34
settings = get_settings ()
35
- version_info = get_version (APP_DIR )
35
+ version_info : dict [ str , str ] = get_version (APP_DIR )
36
36
VERSION : str = version_info ["version" ]
37
37
38
38
logging .config .dictConfig (CONFIG )
Original file line number Diff line number Diff line change 28
28
import traceback
29
29
from abc import ABC , abstractmethod
30
30
from datetime import datetime
31
- from functools import lru_cache
31
+ from functools import cached_property , lru_cache
32
32
from json import JSONDecodeError
33
33
from pathlib import Path
34
34
from typing import AsyncIterator , Optional
37
37
import dockerflow .checks
38
38
from pydantic import BaseModel , FileUrl , ValidationError , computed_field
39
39
40
- from jbi import app , bugzilla
40
+ from jbi import bugzilla
41
41
from jbi .environment import get_settings
42
42
43
43
logger = logging .getLogger (__name__ )
@@ -90,9 +90,11 @@ class QueueItem(BaseModel, frozen=True):
90
90
rid : Optional [str ] = None
91
91
92
92
@computed_field # type: ignore
93
- @property
93
+ @cached_property
94
94
def version (self ) -> str :
95
95
# Prevents circular imports.
96
+ from jbi import app
97
+
96
98
return app .VERSION
97
99
98
100
@property
You can’t perform that action at this time.
0 commit comments