forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from GenomicDataInfrastructure/67-gdi-ckan-har…
…vesters-are-not-running fix(cron): Run harvester cron job in background (run and clean up log…
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# SPDX-FileCopyrightText: Stichting Health-RI | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
# Set the shell to bash | ||
SHELL=/bin/bash | ||
|
||
# Source the environment variables | ||
BASH_ENV=/etc/profile.d/custom_env.sh | ||
|
||
# Every 15 minutes, run the harvester and clean the harvest log every day at 5am | ||
*/15 * * * * /usr/bin/ckan -c /srv/app/ckan.ini harvester run | ||
0 5 * * * /usr/bin/ckan -c /srv/app/ckan.ini harvester clean-harvest-log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SPDX-FileCopyrightText: Stichting Health-RI | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
#!/bin/sh | ||
|
||
# Dump environment variables to a file that will be sourced by cron | ||
printenv | sed 's/^\(.*\)$/export \1/g' > /etc/profile.d/custom_env.sh |