Skip to content

Commit

Permalink
#110 | Query to list org-uuids and org-group-uuids with ETL enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Jan 7, 2025
1 parent 7498874 commit aab089c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ debug_server_with_dump_data_org: build_server
OPENCHS_DATABASE_NAME=avni_org OPENCHS_CLIENT_ID=dummy OPENCHS_KEYCLOAK_CLIENT_SECRET=dummy AVNI_IDP_TYPE=none java -Xmx2048m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ./build/libs/etl-1.0.0-SNAPSHOT.jar

start_server_prerelease: build_server
-mkdir -p /tmp/openchs && sudo ln -s /tmp/openchs /var/log/openchs
-mkdir -p /tmp/avni-etl-service && sudo ln -s /tmp/avni-etl-service /var/log/avni-etl-service

AVNI_IDP_TYPE=cognito \
OPENCHS_CLIENT_ID=$(OPENCHS_CLIENT_ID) \
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/sql/usefulQueries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@ select qft.state,
from qrtz_fired_triggers qft
join qrtz_triggers qt on qft.job_name = qt.job_name
join qrtz_job_details qjd on qt.sched_name = qjd.sched_name and qt.job_name = qjd.job_name and qt.job_group = qjd.job_group;

-- Query to list org-uuids and org-group-uuids with ETL enabled (SyncJob)
select job_name
from (select uuid organisationUUID from organisation) foo
right join qrtz_job_details qjd on organisationUUID = qjd.job_name
where qjd.job_group = 'SyncJobs'
or qjd is null;

0 comments on commit aab089c

Please sign in to comment.