<div dir="ltr"><div>Hi Chip</div><div><br></div><div><a href="https://pyslurm.github.io/23.2/">Pyslurm</a> is a python library that enables interfacing with slurm from within a python script. I played around with and older version that  implemened only srun/sbatch but it looks like the new version also covers the other s* commands take a look at the API <a href="https://pyslurm.github.io/23.2/reference/">here</a>). <br></div><div><br></div><div>So I guess you can use Pyslurm as a basis for a web service and in this way achieve what you want. I wonder how you plan to do the users' authentication part, though... Would appreciate it if you can share some ideas on that.</div><div><br></div><div>BR</div><div><br></div><div>Oren<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 10, 2023 at 1:17 AM Chip Seraphine <<a href="mailto:cseraphine@drwholdings.com">cseraphine@drwholdings.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
Our users submit their jobs from shared submit hosts, and have expressed an understandable preference for being able to submit directly from their own workstations.   The obvious solution (installing the slurm client on their workstations, or providing a container that does something similar) are not available to us because of security concerns.   This leaves REST as the best option.   We’re hoping to provide a REST-based toolset that users familiar with the command line tools can make immediate use of (so, provides basic, stripped-down functionality of srun, squeue, sacct, and sinfo).  Basically, we want to create a subset of the s* commands that can be run from some arbitrary machine if the user has the appropriate token.<br>
<br>
It’d be surprising if we were the first people to go down this path, but searching has turned up nothing.   Is there a project anyone knows about out there for providing command-line SLURM commands that use REST to talk to the daemons?   Or am I missing some obvious solution here?<br>
<br>
--<br>
<br>
Chip Seraphine<br>
Grid Operations<br>
For support please use help-grid in email or slack.<br>
This e-mail and any attachments may contain information that is confidential and proprietary and otherwise protected from disclosure. If you are not the intended recipient of this e-mail, do not read, duplicate or redistribute it by any means. Please immediately delete it and any attachments and notify the sender that you have received it by mistake. Unintended recipients are prohibited from taking action on the basis of information in this e-mail or any attachments. The DRW Companies make no representations that this e-mail or any attachments are free of computer viruses or other defects.<br>
</blockquote></div>