Skip to content

Commit

Permalink
use local cron process for tracking update and index rebuilding jobs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanizz authored Jan 3, 2024
1 parent 71f7691 commit add6444
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 129 deletions.
2 changes: 2 additions & 0 deletions contrib/docker-ckan/base/setup/start_cron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ crontab_file=$(mktemp)
cat <<EOF > $crontab_file
# min hour day month weekday command
* * * * * ckan -c $CKAN_INI cloudstorage sync
0 * * * * ckan -c $CKAN_INI tracking update
0 * * * * ckan -c $CKAN_INI search-index rebuild
EOF

Expand Down
4 changes: 0 additions & 4 deletions contrib/docker-ckan/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,3 @@ RUN pip3 install -e 'git+https://github.com/SmdhMdep/ckanext-datasetformchain.gi
# Copy the healthcheck script
COPY contrib/docker-ckan/prod/health_check.sh ${APP_DIR}/health_check.sh
RUN chmod +x ${APP_DIR}/health_check.sh

# Copy the tracking cron job script
COPY contrib/docker-ckan/prod/tracking_cron_job.sh ${APP_DIR}/tracking_cron_job.sh
RUN chmod +x ${APP_DIR}/tracking_cron_job.sh
125 changes: 0 additions & 125 deletions contrib/docker-ckan/prod/tracking_cron_job.sh

This file was deleted.

0 comments on commit add6444

Please sign in to comment.