mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Warn if using concurrent tasks with kit-ilias-web
This commit is contained in:
parent
49ad1b6e46
commit
f40820c41f
@ -25,6 +25,7 @@ ambiguous situations.
|
|||||||
### Added
|
### Added
|
||||||
- `credential-file` authenticator
|
- `credential-file` authenticator
|
||||||
- `--credential-file` option for `kit-ilias-web` command
|
- `--credential-file` option for `kit-ilias-web` command
|
||||||
|
- Warning if using concurrent tasks with `kit-ilias-web`
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Date parsing now also works correctly in non-group exercises
|
- Date parsing now also works correctly in non-group exercises
|
||||||
|
@ -21,7 +21,6 @@ TargetType = Union[str, int]
|
|||||||
|
|
||||||
|
|
||||||
class KitIliasWebCrawlerSection(HttpCrawlerSection):
|
class KitIliasWebCrawlerSection(HttpCrawlerSection):
|
||||||
|
|
||||||
def target(self) -> TargetType:
|
def target(self) -> TargetType:
|
||||||
target = self.s.get("target")
|
target = self.s.get("target")
|
||||||
if not target:
|
if not target:
|
||||||
@ -164,6 +163,12 @@ class KitIliasWebCrawler(HttpCrawler):
|
|||||||
auth = section.auth(authenticators)
|
auth = section.auth(authenticators)
|
||||||
super().__init__(name, section, config, shared_auth=auth)
|
super().__init__(name, section, config, shared_auth=auth)
|
||||||
|
|
||||||
|
if section.tasks() > 1:
|
||||||
|
log.warn("""
|
||||||
|
Please avoid using too many parallel requests as these are the KIT ILIAS
|
||||||
|
instance's greatest bottleneck.
|
||||||
|
""".strip())
|
||||||
|
|
||||||
self._shibboleth_login = KitShibbolethLogin(
|
self._shibboleth_login = KitShibbolethLogin(
|
||||||
auth,
|
auth,
|
||||||
section.tfa_auth(authenticators),
|
section.tfa_auth(authenticators),
|
||||||
|
Loading…
Reference in New Issue
Block a user