source: trunk/Monitoring/smon/test_remote_repo.py @ 859

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
Line 
1import sys
2sys.path.append("/home/jripsl/snapshot/src")
3
4import elixir
5
6#  Module imports.
7import prodiguer_shared.repo as repo
8import 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.
15repo.connect(_CONNECTION)
16
17# Invoke hooks.
18mq_hooks.update_simulation_status('1pctCO22', 'ERROR')
19
20# Commit.
21repo.commit()
22
23
Note: See TracBrowser for help on using the repository browser.