Skip to content

Instantly share code, notes, and snippets.

@johntron
Created October 28, 2014 23:13
Show Gist options
  • Save johntron/f7071b153193c2eb3e55 to your computer and use it in GitHub Desktop.
Save johntron/f7071b153193c2eb3e55 to your computer and use it in GitHub Desktop.
Run a task from the CLI
#!/local/pythonenv/bin/python
from pyramid.paster import bootstrap
import json
from axon.testcases.config import ConfigFactory
from axon.tasks.reservations import create
bootstrap('/local/web/Axon/development.ini')
c = """
"""
cc = json.loads(c)
factory = ConfigFactory()
ccc = factory.get_config(cc, 1)
res = create(ccc).apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment