8 lines
316 B
Bash
8 lines
316 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
postgres_pod_name='postgresql-primary-0'
|
||
|
|
||
|
## https://worker.graphile.org/docs/cli#add-a-job-via-sql
|
||
|
kubectl -n futureporn exec "${postgres_pod_name}" -- env PGPASSWORD=${POSTGRES_PASSWORD} psql -U postgres --command "SELECT graphile_worker.add_job('hello', json_build_object('name', 'Bobby Tables'));"
|
||
|
|