|
| 1 | +######################################################################### |
| 2 | +# slurmctld/base.pxd - pyslurm slurmctld api functions |
| 3 | +######################################################################### |
| 4 | +# Copyright (C) 2025 Toni Harzendorf <[email protected]> |
| 5 | +# |
| 6 | +# This file is part of PySlurm |
| 7 | +# |
| 8 | +# PySlurm is free software; you can redistribute it and/or modify |
| 9 | +# it under the terms of the GNU General Public License as published by |
| 10 | +# the Free Software Foundation; either version 2 of the License, or |
| 11 | +# (at your option) any later version. |
| 12 | + |
| 13 | +# PySlurm is distributed in the hope that it will be useful, |
| 14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | +# GNU General Public License for more details. |
| 17 | +# |
| 18 | +# You should have received a copy of the GNU General Public License along |
| 19 | +# with PySlurm; if not, write to the Free Software Foundation, Inc., |
| 20 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 21 | +# |
| 22 | +# cython: c_string_type=unicode, c_string_encoding=default |
| 23 | +# cython: language_level=3 |
| 24 | + |
| 25 | +from pyslurm cimport slurm |
| 26 | +from pyslurm.slurm cimport ( |
| 27 | + slurm_conf_t, |
| 28 | + slurm_reconfigure, |
| 29 | + slurm_shutdown, |
| 30 | + slurm_ping, |
| 31 | + slurm_takeover, |
| 32 | + slurm_set_debugflags, |
| 33 | + slurm_set_debug_level, |
| 34 | + slurm_set_schedlog_level, |
| 35 | + slurm_set_fs_dampeningfactor, |
| 36 | +) |
| 37 | +from libc.stdint cimport uint16_t, uint64_t |
| 38 | +from pyslurm.utils.uint cimport u16_parse |
| 39 | +from pyslurm.utils cimport cstr |
| 40 | + |
| 41 | + |
| 42 | +cdef class PingResponse: |
| 43 | + """Slurm Controller Ping response information""" |
| 44 | + |
| 45 | + cdef public: |
| 46 | + is_primary |
| 47 | + is_responding |
| 48 | + index |
| 49 | + hostname |
| 50 | + latency |
0 commit comments