-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Drop the use of the Tubular repository
The Tubular repository has been deplrecated and the relevant scripts have been moved to the edx-platform codebase. * Drop the use of the Tubulas repository and install the retirement scripts from edx-platform.. * Add support for Tutor 18 / Open edX Redwood. Fixes: #32
- Loading branch information
Maari Tamm
committed
Aug 6, 2024
1 parent
93e40bd
commit 5f2e6f3
Showing
6 changed files
with
19 additions
and
13 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
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
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
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
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
6 changes: 3 additions & 3 deletions
6
tutorretirement/templates/retirement/build/retirement/run_retirement_pipeline.sh
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
cool_off_days=$1 | ||
python scripts/get_learners_to_retire.py --config_file=./pipeline_config/config.yml --output_dir=learners_to_retire --cool_off_days="$cool_off_days" | ||
for filename in learners_to_retire/*;do | ||
python scripts/user_retirement/get_learners_to_retire.py --config_file=scripts/user_retirement/pipeline_config/config.yml --output_dir=scripts/user_retirement/learners_to_retire --cool_off_days="$cool_off_days" | ||
for filename in scripts/user_retirement/learners_to_retire/*;do | ||
if test ! -f "$filename";then | ||
echo "No users to retire" | ||
continue | ||
else | ||
IFS="=" read -r name username <"$filename" | ||
echo "Retiring $username" | ||
python scripts/retire_one_learner.py --config_file=./pipeline_config/config.yml --username="$username" | ||
python scripts/user_retirement/retire_one_learner.py --config_file=scripts/user_retirement/pipeline_config/config.yml --username="$username" | ||
fi | ||
done |