Skip to content

Commit

Permalink
add xdmod task
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Dec 12, 2023
1 parent c81f33f commit 318416c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def handle(self, *args, **options):
'fasrc': ['import_quotas', 'id_import_allocations'],
'sftocf': ['pullsf_pushcf_redash', 'pull_resource_data'],
'ldap': ['update_group_membership_ldap', 'id_add_projects'],
'slurm': ['slurm_sync'],
'xdmod': ['xdmod_usage'],
}
scheduled = [task.func for task in Schedule.objects.all()]

Expand Down
4 changes: 2 additions & 2 deletions coldfront/plugins/xdmod/tasks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.core.management import call_command

def xdmod_usage():
"""ID and add new slurm allocations from ADGroup and ADUser data
"""Add xdmod usage data
"""
call_command('slurm_sync', sync=True)
call_command('xdmod_usage', sync=True)

0 comments on commit 318416c

Please sign in to comment.