Package multi :: Module slave_commands :: Class Exit_command
[hide private]
[frames] | no frames]

Class Exit_command

source code


Special command for terminating slave processors.

This sets the processor's do_quit flag, terminating the Processor.run() loop for the slaves.

Instance Methods [hide private]
 
run(self, processor, completed)
Set the slave processor's do_quit flag to terminate.
source code

Inherited from Slave_command: __init__, set_memo_id

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(self, processor, completed)

source code 

Set the slave processor's do_quit flag to terminate.

Parameters:
  • processor (Processor instance) - The slave processor the command is running on. Results from the command are returned via calls to processor.return_object.
  • completed (bool) - The flag used in batching result returns to indicate that the sequence of batched result commands has completed. This value should be returned via the last result object retuned by this method or methods it calls. All other Result_commands should be initialised with completed=False. This is an optimisation to prevent the sending an extra batched result queue completion result command being sent, it may be an over early optimisation.
Overrides: Slave_command.run