pyfarm.master.user_interface.agents module

pyfarm.master.user_interface.agents.agent_add_software(agent_id)[source]
pyfarm.master.user_interface.agents.agent_delete_software(agent_id, version_id)[source]
pyfarm.master.user_interface.agents.agents()[source]
pyfarm.master.user_interface.agents.delete_single_agent(agent_id)[source]
pyfarm.master.user_interface.agents.or_(*clauses)

Produce a conjunction of expressions joined by OR.

E.g.:

from sqlalchemy import or_

stmt = select([users_table]).where(
                or_(
                    users_table.c.name == 'wendy',
                    users_table.c.name == 'jack'
                )
            )

The or_() conjunction is also available using the Python | operator (though note that compound expressions need to be parenthesized in order to function with Python operator precedence behavior):

stmt = select([users_table]).where(
                (users_table.c.name == 'wendy') |
                (users_table.c.name == 'jack')
            )

See also

and_()

pyfarm.master.user_interface.agents.restart_single_agent(agent_id)[source]
pyfarm.master.user_interface.agents.single_agent(agent_id)[source]