diff --git a/MANIFEST.in b/MANIFEST.in index e5bdd3ff2..07dfcbac6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,7 @@ recursive-include coldfront/core/field_of_science/management/commands/data * recursive-include coldfront/plugins/iquota/templates * recursive-include coldfront/plugins/system_monitor/templates * +recursive-include coldfront/plugins/slurm/templates * recursive-include coldfront/templates * recursive-include coldfront/static * recursive-include coldfront/core/portal/templates * diff --git a/coldfront/config/plugins/slurm.py b/coldfront/config/plugins/slurm.py index 56f690c9e..b971aa628 100644 --- a/coldfront/config/plugins/slurm.py +++ b/coldfront/config/plugins/slurm.py @@ -9,3 +9,11 @@ SLURM_NOOP = ENV.bool('SLURM_NOOP', False) SLURM_IGNORE_USERS = ENV.list('SLURM_IGNORE_USERS', default=['root']) SLURM_IGNORE_ACCOUNTS = ENV.list('SLURM_IGNORE_ACCOUNTS', default=[]) +SLURM_SUBMISSION_INFO = ENV.list('SLURM_SUBMISSION_INFO', default=['account']) +SLURM_DISPLAY_SHORT_OPTION_NAMES = ENV.bool('SLURM_DISPLAY_SHORT_OPTION_NAMES', default=False) +SLURM_SHORT_OPTION_NAMES = ENV.dict('SLURM_SHORT_OPTION_NAMES', default={ + 'qos': 'q', + 'account': 'A', + 'clusters': 'M', + 'partition': 'p', +}) \ No newline at end of file diff --git a/coldfront/config/urls.py b/coldfront/config/urls.py index 353e3602e..df2105901 100644 --- a/coldfront/config/urls.py +++ b/coldfront/config/urls.py @@ -27,6 +27,8 @@ path('research-output/', include('coldfront.core.research_output.urls')), ] +if 'coldfront.plugins.slurm' in settings.INSTALLED_APPS: + urlpatterns.append(path('slurm/', include('coldfront.plugins.slurm.urls'))) if 'coldfront.plugins.iquota' in settings.INSTALLED_APPS: urlpatterns.append(path('iquota/', include('coldfront.plugins.iquota.urls'))) diff --git a/coldfront/core/allocation/templates/allocation/allocation_detail.html b/coldfront/core/allocation/templates/allocation/allocation_detail.html index b459f0488..36dd7996d 100644 --- a/coldfront/core/allocation/templates/allocation/allocation_detail.html +++ b/coldfront/core/allocation/templates/allocation/allocation_detail.html @@ -234,6 +234,10 @@
{{ resources_name }} | ++ srun + {% for slurm_submit_option, slurm_submit_option_value in submit_info.items %} + {{ slurm_submit_option }} {{ slurm_submit_option_value }} + {% endfor %} + <other options> + | +
---|