mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 10:57:35 -02:30
Some light implimentation details for basic fact caching and collection
This commit is contained in:
27
awx/main/management/commands/run_fact_cache_receiver.py
Normal file
27
awx/main/management/commands/run_fact_cache_receiver.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright (c) 2015 Ansible, Inc.
|
||||
# All Rights Reserved
|
||||
|
||||
import logging
|
||||
|
||||
from django.core.management.base import NoArgsCommand
|
||||
|
||||
from awx.main.models import * # noqa
|
||||
|
||||
logger = logging.getLogger('awx.main.commands.run_fact_cache_receiver')
|
||||
|
||||
class FactCacheReceiver(object):
|
||||
pass
|
||||
|
||||
class Command(NoArgsCommand):
|
||||
'''
|
||||
blah blah
|
||||
'''
|
||||
help = 'Launch the Fact Cache Receiver'
|
||||
|
||||
def handle_noargs(self, **options):
|
||||
fcr = FactCacheReceiver()
|
||||
try:
|
||||
fcr.run_receiver()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user