We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61a73d9 + aebde8f commit 1ce7fccCopy full SHA for 1ce7fcc
1 file changed
alts/scheduler/scheduling.py
@@ -11,6 +11,7 @@
11
12
from alts.scheduler import CONFIG
13
from alts.scheduler.db import Session, Task
14
+from alts.shared.constants import DEFAULT_REQUEST_TIMEOUT
15
from alts.shared.models import TaskRequestPayload
16
from alts.worker.mappings import RUNNER_MAPPING
17
from alts.worker.tasks import run_tests
@@ -45,6 +46,7 @@ def get_available_test_tasks(self) -> List[dict]:
45
46
CONFIG.bs_tasks_endpoint,
47
),
48
headers={'Authorization': f'Bearer {CONFIG.bs_token}'},
49
+ timeout=DEFAULT_REQUEST_TIMEOUT,
50
)
51
response.raise_for_status()
52
response_as_json = response.json()
0 commit comments