-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added features #617
Open
giuliolibrando
wants to merge
18
commits into
ubccr:main
Choose a base branch
from
giuliolibrando:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Added features #617
Conversation
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
giuliolibrando
changed the title
added function to autoupdate project attributes consumption via allocations usages
added #615 and #616
Jul 23, 2024
…,mariadb) - removed .env from .dockeringnore
…base.py for CRSF error)
…of has_usage get_custom_command)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
615:
616:
Added the capability to autoupdate an Allocation Attribute Usage (if it's consumable) by adding automatic checks provided by admin. The function converts %SLURM_ACCOUNT_NAME% with slurm_account_name inside the allocation attribute if present.
The command is executed each hour on the host system for each allocation that has a consumable attribute and a usage command not null.
It requires redis-server and django-q worker.
commands to start it:
redis-server
python manage.py qcluster
DEBUG=True coldfront runserver
I've added a docker-compose stack (nginx, coldfront-web, coldfront-worker, redis, mariadb)
chmod +x entrypoint.sh
docker-compose up --build
I've configured the app to be exposed correctly via gunicorn
I've implemented the is_changeable Project Attribute type functions. It was present but not used in the software logic.
I've created and added it to Coldfront plugins folder a generic storage plugin to dump the storage allocations, storage_group_name and status
https://github.com/giuliolibrando/coldfront-plugin-storage
I've added is_default attribute for project attribute type. If true, the attribute is added to all new projects. it also asks for a default value