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

fix: adjust cron tasks #704

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion django/curator/invoke_tasks/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def create_pgpass_file(ctx, db_key=_DEFAULT_DATABASE, force=False):
@task(aliases=["b"])
def backup(ctx):
create_pgpass_file(ctx)
ctx.run("autopostgresqlbackup")
ctx.run("/usr/sbin/autopostgresqlbackup")


@task(aliases=["r"])
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion django/deploy/db/postgresql-backup-pre
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh

/usr/local/bin/inv -r /code db.pgpass >> /shared/logs/db-backup.log 2>&1
export DJANGO_SETTINGS_MODULE="core.settings.production"
/usr/local/bin/inv -r /code db.pgpass >> /shared/logs/prepare-db-backup.log 2>&1
Loading