| 769 | tentacles_parser.set_defaults(func=commands.call_tentacles_manager) |
| 770 | |
| 771 | def _register_node_arguments(parser): |
| 772 | parser.add_argument( |
| 773 | '--host', |
| 774 | help='Host to bind the server to.', |
| 775 | type=str, |
| 776 | default=None |
| 777 | ) |
| 778 | parser.add_argument( |
| 779 | '--port', |
| 780 | help='Port to bind the server to (default: 8000).', |
| 781 | type=int, |
| 782 | default=None |
| 783 | ) |
| 784 | parser.add_argument( |
| 785 | '--master', |
| 786 | help='Enable master node mode (schedules and executes tasks, UI enabled by default).', |
| 787 | action='store_true' |
| 788 | ) |
| 789 | parser.add_argument( |
| 790 | '--consumer_only', |
| 791 | help='Start OctoBot Node in consumer only mode, in case the master node is not enough (requires a postgres database).', |
| 792 | type=bool, |
| 793 | default=False |
| 794 | ) |
| 795 | |
| 796 | |
| 797 | def start_background_octobot_with_args( |