#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = optparse . OptionParser ( ) #NEWLINE# parser . add_option ( '-b' , '--actor_batch_size' , dest = 'actor_batch_size' , default = 100 , help = 'number of actors to fetch in a single query' ) #NEWLINE# parser . add_option ( '-w' , '--write' , dest = 'write' , action = 'store_true' , default = False , help = 'write results back to data store' ) #NEWLINE# parser . add_option ( '-a' , '--app_id' , dest = 'app_id' , help = 'the app_id of your app, as declared in app.yaml' ) #NEWLINE# parser . add_option ( '-s' , '--servername' , dest = 'servername' , help = 'the hostname your app is deployed on. Defaults to<app_id>.appspot.com' ) #NEWLINE# ( options , args ) = parser . parse_args ( ) #NEWLINE# remote_api_stub . ConfigureRemoteDatastore ( app_id = options . app_id , path = '/remote_api' , auth_func = auth_function , servername = options . servername ) #NEWLINE# ChannelCountBackfiller ( options . write ) . run ( int ( options . actor_batch_size ) )