Skip to content

Commit

Permalink
[refactor:job_backend] Use Slurm as the default job back-end
Browse files Browse the repository at this point in the history
- The GC3Pie back-end for job management that has been the default so far
  is no longer actively supported. Use the Slurm back-end as default
  instead.
- Add deprecation message when the GC3Pie class is instantiated.

Issue: easybuilders#4565
  • Loading branch information
gkaf89 committed Sep 26, 2024
1 parent 36db0c7 commit 4d08b03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
DEFAULT_ENV_FOR_SHEBANG = '/usr/bin/env'
DEFAULT_ENVVAR_USERS_MODULES = 'HOME'
DEFAULT_INDEX_MAX_AGE = 7 * 24 * 60 * 60 # 1 week (in seconds)
DEFAULT_JOB_BACKEND = 'GC3Pie'
DEFAULT_JOB_BACKEND = 'Slurm'
DEFAULT_JOB_EB_CMD = 'eb'
DEFAULT_LOGFILE_FORMAT = ("easybuild", "easybuild-%(name)s-%(version)s-%(date)s.%(time)s.log")
DEFAULT_MAX_FAIL_RATIO_PERMS = 0.5
Expand Down
4 changes: 4 additions & 0 deletions easybuild/tools/job/gc3pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ def __init__(self, *args, **kwargs):
def _check_version(self):
"""Check whether GC3Pie version complies with required version."""

deprication_msg = "The GC3Pie job back-end is no longer maintained and will be deprecated"
deprication_msg += ", please use a different backend"
_log.deprecated(deprication_msg, '5.0')

try:
from pkg_resources import get_distribution, DistributionNotFound
pkg = get_distribution('gc3pie')
Expand Down

0 comments on commit 4d08b03

Please sign in to comment.