Skip to content
Snippets Groups Projects
Commit 297b0b21 authored by Martin Mareš's avatar Martin Mareš
Browse files

init-year: Přepnutí na opravování zakládáme jako job

parent 0f058ba3
No related branches found
No related tags found
1 merge request!136Joby naplánované na konkrétní čas
...@@ -85,10 +85,10 @@ create_ss() ...@@ -85,10 +85,10 @@ create_ss()
--pr-tasks-start $D_START \ --pr-tasks-start $D_START \
--pr-submit-end "$D_DOMACI 23:59" \ --pr-submit-end "$D_DOMACI 23:59" \
--enroll-deadline "$D_ENROLL 23:59" \ --enroll-deadline "$D_ENROLL 23:59" \
--switch-to-grading $(dd "+1 day $D_DOMACI") \
--score-successful-limit 20 --score-advance-limit 20 --score-successful-limit 20 --score-advance-limit 20
bin/create-tasks --round $YEAR-$CAT-1 --code $CAT-I-1 \ bin/create-tasks --round $YEAR-$CAT-1 --code $CAT-I-1 \
--name 'Úloha 1' --points 6 --count 6 --name 'Úloha 1' --points 6 --count 6
bin/schedule-round-job --round $YEAR-$CAT-1 --switch-to-grading --time $(dd "+1 day $D_DOMACI")
bin/create-round --year $YEAR --cat $CAT --seq 2 \ bin/create-round --year $YEAR --cat $CAT --seq 2 \
--level 4 \ --level 4 \
...@@ -97,10 +97,10 @@ create_ss() ...@@ -97,10 +97,10 @@ create_ss()
--ct-submit-end "$D_SKOLNI 14:20" \ --ct-submit-end "$D_SKOLNI 14:20" \
--pr-tasks-start $(dt "-1 day $D_SKOLNI 7:00") \ --pr-tasks-start $(dt "-1 day $D_SKOLNI 7:00") \
--pr-submit-end "$D_SKOLNI 18:00" \ --pr-submit-end "$D_SKOLNI 18:00" \
--switch-to-grading "$D_SKOLNI 19:00" \
--score-successful-limit 10 --score-successful-limit 10
bin/create-tasks --round $YEAR-$CAT-2 --code $CAT-II-1 \ bin/create-tasks --round $YEAR-$CAT-2 --code $CAT-II-1 \
--name 'Úloha 1' --points 6 --count 3 --name 'Úloha 1' --points 6 --count 3
bin/schedule-round-job --round $YEAR-$CAT-2 --switch-to-grading --time "$D_SKOLNI 19:00"
bin/create-round --year $YEAR --cat $CAT --seq 3 \ bin/create-round --year $YEAR --cat $CAT --seq 3 \
--level 1 \ --level 1 \
...@@ -109,11 +109,11 @@ create_ss() ...@@ -109,11 +109,11 @@ create_ss()
--ct-submit-end "$D_KRAJSKE 14:20" \ --ct-submit-end "$D_KRAJSKE 14:20" \
--pr-tasks-start $(dt "-1 day $D_KRAJSKE 7:00") \ --pr-tasks-start $(dt "-1 day $D_KRAJSKE 7:00") \
--pr-submit-end "$D_KRAJSKE 18:00" \ --pr-submit-end "$D_KRAJSKE 18:00" \
--switch-to-grading "$D_KRAJSKE 19:00" \
--publish-score --publish-score
bin/create-tasks --round $YEAR-$CAT-3 --code $CAT-III-1 \ bin/create-tasks --round $YEAR-$CAT-3 --code $CAT-III-1 \
--name 'Úloha 1' --points 6 --count 4 --name 'Úloha 1' --points 6 --count 4
bin/create-contests $YEAR-$CAT-3 bin/create-contests $YEAR-$CAT-3
bin/schedule-round-job --round $YEAR-$CAT-3 --switch-to-grading --time "$D_KRAJSKE 19:00"
if [ $CAT = A ] ; then if [ $CAT = A ] ; then
local D_USTREDNI_DEN1=${D[USTREDNI_PONDELI]} local D_USTREDNI_DEN1=${D[USTREDNI_PONDELI]}
...@@ -162,10 +162,10 @@ create_zs() ...@@ -162,10 +162,10 @@ create_zs()
--ct-tasks-start $D_START \ --ct-tasks-start $D_START \
--ct-submit-end "$D_DOMACI 23:59" \ --ct-submit-end "$D_DOMACI 23:59" \
--enroll-deadline "$D_ENROLL 23:59" \ --enroll-deadline "$D_ENROLL 23:59" \
--switch-to-grading $(dd "+1 day $D_DOMACI") \
--score-successful-limit 20 --score-advance-limit 20 --score-successful-limit 20 --score-advance-limit 20
bin/create-tasks --round $YEAR-$CAT-1 --code $CAT-I-1 \ bin/create-tasks --round $YEAR-$CAT-1 --code $CAT-I-1 \
--name 'Úloha 1' --points 6 --count 6 --name 'Úloha 1' --points 6 --count 6
bin/schedule-round-job --round $YEAR-$CAT-1 --switch-to-grading --time $(dd "+1 day $D_DOMACI")
bin/create-round --year $YEAR --cat $CAT --seq 2 \ bin/create-round --year $YEAR --cat $CAT --seq 2 \
--level 2 \ --level 2 \
...@@ -174,12 +174,12 @@ create_zs() ...@@ -174,12 +174,12 @@ create_zs()
--ct-submit-end $(dt "$L_OKRESNI minutes $D_OKRESNI 10:20") \ --ct-submit-end $(dt "$L_OKRESNI minutes $D_OKRESNI 10:20") \
--pr-tasks-start "$D_OKRESNI 10:00" \ --pr-tasks-start "$D_OKRESNI 10:00" \
--pr-submit-end "$D_OKRESNI 18:00" \ --pr-submit-end "$D_OKRESNI 18:00" \
--switch-to-grading "$D_OKRESNI 19:00" \
--score-successful-limit $(if [ $CAT = Z9 ] ; then echo 12 ; else echo 9 ; fi) \ --score-successful-limit $(if [ $CAT = Z9 ] ; then echo 12 ; else echo 9 ; fi) \
--publish-score --publish-score
bin/create-tasks --round $YEAR-$CAT-2 --code $CAT-II-1 \ bin/create-tasks --round $YEAR-$CAT-2 --code $CAT-II-1 \
--name 'Úloha 1' --points 6 --count $(if [ $CAT = Z9 ] ; then echo 4 ; else echo 3 ; fi) --name 'Úloha 1' --points 6 --count $(if [ $CAT = Z9 ] ; then echo 4 ; else echo 3 ; fi)
bin/create-contests $YEAR-$CAT-2 bin/create-contests $YEAR-$CAT-2
bin/schedule-round-job --round $YEAR-$CAT-2 --switch-to-grading --time "$D_OKRESNI 19:00"
if [ $CAT = Z9 ] ; then if [ $CAT = Z9 ] ; then
local D_KRAJSKE=${D[${CAT}_KRAJSKE]} local D_KRAJSKE=${D[${CAT}_KRAJSKE]}
...@@ -191,12 +191,12 @@ create_zs() ...@@ -191,12 +191,12 @@ create_zs()
--ct-submit-end $(dt "$L_KRAJSKE minutes $D_KRAJSKE 10:20") \ --ct-submit-end $(dt "$L_KRAJSKE minutes $D_KRAJSKE 10:20") \
--pr-tasks-start "$D_KRAJSKE 10:00" \ --pr-tasks-start "$D_KRAJSKE 10:00" \
--pr-submit-end "$D_KRAJSKE 18:00" \ --pr-submit-end "$D_KRAJSKE 18:00" \
--switch-to-grading "$D_KRAJSKE 19:00" \
--score-successful-limit 12 \ --score-successful-limit 12 \
--publish-score --publish-score
bin/create-tasks --round $YEAR-$CAT-3 --code $CAT-III-1 \ bin/create-tasks --round $YEAR-$CAT-3 --code $CAT-III-1 \
--name 'Úloha 1' --points 6 --count 4 --name 'Úloha 1' --points 6 --count 4
bin/create-contests $YEAR-$CAT-3 bin/create-contests $YEAR-$CAT-3
bin/schedule-round-job --round $YEAR-$CAT-3 --switch-to-grading --time "$D_KRAJSKE 19:00"
fi fi
} }
...@@ -212,13 +212,13 @@ create_p() ...@@ -212,13 +212,13 @@ create_p()
--enroll-mode register --enroll-advert "Programování" \ --enroll-mode register --enroll-advert "Programování" \
--ct-tasks-start $D_START \ --ct-tasks-start $D_START \
--ct-submit-end "$D_DOMACI 23:59" \ --ct-submit-end "$D_DOMACI 23:59" \
--switch-to-grading $(dd "+1 day $D_DOMACI 7:00") \
--online-submit --online-submit
bin/create-tasks --round $YEAR-P-1 --code P-I-1 \ bin/create-tasks --round $YEAR-P-1 --code P-I-1 \
--name 'Úloha 1' --points 10 --type cms --count 2 --name 'Úloha 1' --points 10 --type cms --count 2
bin/create-tasks --round $YEAR-P-1 --code P-I-3 \ bin/create-tasks --round $YEAR-P-1 --code P-I-3 \
--name 'Úloha 3' --points 10 --count 2 --name 'Úloha 3' --points 10 --count 2
bin/create-contests $YEAR-P-1 bin/create-contests $YEAR-P-1
bin/schedule-round-job --round $YEAR-P-1 --switch-to-grading --time $(dd "+1 day $D_DOMACI 7:00")
bin/create-round --year $YEAR --cat P --seq 2 \ bin/create-round --year $YEAR --cat P --seq 2 \
--level 1 \ --level 1 \
...@@ -226,11 +226,11 @@ create_p() ...@@ -226,11 +226,11 @@ create_p()
--ct-tasks-start "$D_KRAJSKE 10:00" \ --ct-tasks-start "$D_KRAJSKE 10:00" \
--ct-submit-end "$D_KRAJSKE 14:20" \ --ct-submit-end "$D_KRAJSKE 14:20" \
--pr-tasks-start $(dt "-1 day $D_KRAJSKE 7:00") \ --pr-tasks-start $(dt "-1 day $D_KRAJSKE 7:00") \
--pr-submit-end "$D_KRAJSKE 18:00" \ --pr-submit-end "$D_KRAJSKE 18:00"
--switch-to-grading "$D_KRAJSKE 19:00"
bin/create-tasks --round $YEAR-P-2 --code P-II-1 \ bin/create-tasks --round $YEAR-P-2 --code P-II-1 \
--name 'Úloha 1' --points 10 --count 4 --name 'Úloha 1' --points 10 --count 4
bin/create-contests $YEAR-P-2 bin/create-contests $YEAR-P-2
bin/schedule-round-job --round $YEAR-P-2 --switch-to-grading --time "$D_KRAJSKE 19:00"
local D_USTREDNI_DEN1=$(dd "+3 days ${D[USTREDNI_PONDELI]}") local D_USTREDNI_DEN1=$(dd "+3 days ${D[USTREDNI_PONDELI]}")
bin/create-round --year $YEAR --cat P --seq 3 --part 1 \ bin/create-round --year $YEAR --cat P --seq 3 --part 1 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment