~cprov/core-image-publisher/bump-uservice

« back to all changes in this revision

Viewing changes to core_image_publisher/__init__.py

  • Committer: Ubuntu CI Bot
  • Author(s): Celso Providelo
  • Date: 2015-03-27 03:34:14 UTC
  • mfrom: (8.1.1 trunk)
  • Revision ID: ubuntu_ci_bot-20150327033414-mmqttbmefty8r380
Fixing namespace conflict in main(), preventing main script to run in production. [r=Thomi Richards]

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    connection = create_connection_from_config(config)
85
85
    try:
86
86
        with connection:
87
 
            worker = CoreImagePublisherQueueMonitor(
 
87
            monitor = CoreImagePublisherQueueMonitor(
88
88
                connection,
89
89
                worker.logging_worker
90
90
            )
91
 
            worker.run()
 
91
            monitor.run()
92
92
    except KeyboardInterrupt:
93
93
        print("Bye!")