Skip to content

Commit

Permalink
fix cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
Scitz0 committed Mar 25, 2024
1 parent dd08692 commit 7662693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/grest/cron/jobs/cli_protocol_params-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ elif [[ -z "${prot_params}" ]] || ! jq -er . <<< "${prot_params}" &>/dev/null; t
exit 1
fi

psql ${DB_NAME} -qb -c "INSERT INTO grest.control_table (key, last_value, artifacts) VALUES ('cli_protocol_params','${last_epoch}','${prot_params}') ON CONFLICT(key) DO UPDATE SET last_value='${last_epoch}', artifacts='${prot_params}'"
psql ${DB_NAME} -qb -c "INSERT INTO grest.control_table (key, last_value, artifacts) VALUES ('cli_protocol_params','${current_epoch}','${prot_params}') ON CONFLICT(key) DO UPDATE SET last_value='${current_epoch}', artifacts='${prot_params}'"

echo "$(date +%F_%H:%M:%S) - END - CLI Protocol Parameters Update, updated for epoch ${last_epoch}."
echo "$(date +%F_%H:%M:%S) - END - CLI Protocol Parameters Update, updated for epoch ${current_epoch}."

0 comments on commit 7662693

Please sign in to comment.