Last change
on this file since 859 was
859,
checked in by jripsl, 11 years ago
|
- add killed/segfault detection.
- database communication implementation (suite).
- trap BREAK signal to stop consumer before exiting.
|
File size:
440 bytes
|
Rev | Line | |
---|
[859] | 1 | import sys |
---|
| 2 | sys.path.append("/home/jripsl/snapshot/src") |
---|
| 3 | |
---|
| 4 | import elixir |
---|
| 5 | |
---|
| 6 | # Module imports. |
---|
| 7 | import prodiguer_shared.repo as repo |
---|
| 8 | import prodiguer_shared.repo.mq.hooks as mq_hooks |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | # Repo connection string. |
---|
| 12 | _CONNECTION = "postgresql://postgres:Silence107!@localhost:5432/prodiguer" |
---|
| 13 | |
---|
| 14 | # Get prodiguer session handler. |
---|
| 15 | repo.connect(_CONNECTION) |
---|
| 16 | |
---|
| 17 | # Invoke hooks. |
---|
| 18 | mq_hooks.update_simulation_status('1pctCO22', 'ERROR') |
---|
| 19 | |
---|
| 20 | # Commit. |
---|
| 21 | repo.commit() |
---|
| 22 | |
---|
| 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.