| 734 | tentacles_parser.set_defaults(func=commands.call_tentacles_manager) |
| 735 | |
| 736 | def _register_node_arguments(parser): |
| 737 | parser.add_argument( |
| 738 | '--host', |
| 739 | help='Host to bind the server to.', |
| 740 | type=str, |
| 741 | default=None |
| 742 | ) |
| 743 | parser.add_argument( |
| 744 | '--port', |
| 745 | help='Port to bind the server to (default: 8000).', |
| 746 | type=int, |
| 747 | default=None |
| 748 | ) |
| 749 | parser.add_argument( |
| 750 | '--master', |
| 751 | help='Enable master node mode (schedules and executes tasks, UI enabled by default).', |
| 752 | action='store_true' |
| 753 | ) |
| 754 | parser.add_argument( |
| 755 | '--consumer_only', |
| 756 | help='Start OctoBot Node in consumer only mode, in case the master node is not enough (requires a postgres database).', |
| 757 | type=bool, |
| 758 | default=False |
| 759 | ) |
| 760 | |
| 761 | |
| 762 | def start_background_octobot_with_args( |