Skip to content

Commit

Permalink
Merge pull request #1711 from edx/ihassan/fix_mysql_job
Browse files Browse the repository at this point in the history
fix: fix edge mysql monitoring job
  • Loading branch information
syedimranhassan authored Dec 11, 2023
2 parents ce47cb9 + e18a085 commit 6f0a9e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions devops/jobs/ListMysqlProcess.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ class ListMysqlProcess {
rdsignore = "${rdsignore}-i ${ignore} "
}

def regioninclude = ""
configuration.REGION_LIST.each { include ->
regioninclude = "${regioninclude}-r ${include} "
}

environmentVariables {
env('AWS_DEFAULT_REGION', extraVars.get('REGION'))
env('ENVIRONMENT', environment)
env('RDSIGNORE', rdsignore)
env('REGIONINCLUDE', regioninclude)
}

multiscm {
Expand Down
5 changes: 4 additions & 1 deletion devops/resources/list-mysql-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ set -x
if [[ ! -v RDSIGNORE ]]; then
RDSIGNORE=""
fi
if [[ ! -v REGIONINCLUDE ]]; then
REGIONINCLUDE=""
fi

python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE}
python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE} ${REGIONINCLUDE}

0 comments on commit 6f0a9e6

Please sign in to comment.