Skip to content
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

chore: CWSM export job: support running with on demand nodes. #1707

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions dataeng/resources/database-export-courseware-studentmodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ env

DAY_OF_MONTH=$(date +%d)
OUTPUT_URL=$BASE_OUTPUT_URL/$DAY_OF_MONTH/$OUTPUT_DIR
NUM_REDUCE_TASKS=$(( $NUM_TASK_CAPACITY + 1 ))
NUM_CAPACITY=$(( $NUM_TASK_CAPACITY + $ON_DEMAND_CAPACITY ))
NUM_MAPPERS=$(( ($NUM_CAPACITY + 1) * 2 ))
NUM_REDUCE_TASKS=$(( $NUM_CAPACITY + 1 ))

${WORKSPACE}/analytics-configuration/automation/run-automated-task.sh \
StudentModulePerCourseAfterImportWorkflow --local-scheduler \
Expand All @@ -13,7 +15,7 @@ ${WORKSPACE}/analytics-configuration/automation/run-automated-task.sh \
--output-root $OUTPUT_URL/ \
--delete-output-root \
--output-suffix $OUTPUT_SUFFIX \
--num-mappers $(( ($NUM_TASK_CAPACITY + 1) * 2 )) \
--num-mappers $NUM_MAPPERS \
--n-reduce-tasks $NUM_REDUCE_TASKS \
--verbose \
$EXTRA_ARGS
Expand Down
Loading