-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation warning for the CobaltProvider (#3101)
Cobalt scheduler is no longer in use in any of the major ALCF machines. At this point only JLSE uses Cobalt. Since we don't know for sure if there are any parsl users on JLSE, I'm adding a deprecation notice with intent to remove the CobaltProvider by 2024-04.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
parsl/tests/test_providers/test_cobalt_deprecation_warning.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import warnings | ||
import pytest | ||
from parsl.providers import CobaltProvider | ||
|
||
|
||
@pytest.mark.local | ||
def test_deprecation_warning(): | ||
|
||
with warnings.catch_warnings(record=True) as w: | ||
warnings.simplefilter("always") | ||
|
||
CobaltProvider() | ||
|
||
assert len(w) == 1 | ||
assert issubclass(w[-1].category, DeprecationWarning) | ||
assert "CobaltProvider" in str(w[-1].message) |