Dónal McMullan
Dónal McMullan
A couple of small tweaks that allow the demo to run under python 3, tested with python 3.6 on CentOS - Add brackets to print statements. - Swap 'unicode' with...
There's a function in `rqd.util` that (depending on your configuration file) will try to create the user account for a job's user if the account doesn't already exist. The function...
Running datetime.datetime.now() in a Python process under RQD gives me Pacific time.
The 'quick usage example' on ldaptor's github homepage works for me (with minimal obvious modifications) on version 16 of ldaptor on Python 2.7 For version 19 of ldaptor, I get...
Every frame that runs for longer than 5 minutes gets killed by `rqd` at 5-minutes-and-change. I was trying to track this down in our (barely customized) fork of OpenCue, but...
Following the instructions in the docs for "[Testing the sandbox environment](https://www.opencue.io/docs/quick-starts/quick-start-linux/#testing-the-sandbox-environment)" in the docs, submitting a job with `cuesubmit` fails with the error below printed to stdout. I created a...
The code gets a listing of pids from the proc directory: https://github.com/AcademySoftwareFoundation/OpenCue/blob/e7c38c6bf5a39eec650a1f7a3851dabcc10d6f48/rqd/rqd/rqmachine.py#L246-L247 Then reads their `stat` and `statm` files, and also creates a `psutil.Process` instance for each PID. This all...
Instead of: https://github.com/AcademySoftwareFoundation/OpenCue/blob/e7c38c6bf5a39eec650a1f7a3851dabcc10d6f48/rqd/rqd/rqmachine.py#L268-L270 Consider: ```python with open("/proc/{}/cmdline".format(pid)) as fh: pids[pid]["cmd_line"] = fh.read().strip('\x00').split('\x00') ``` I'd like the code in this loop to be efficient, so that we minimize occurrences of `/prod/PID`...
Note that `_getStatFields` returns a `list` with `[None, None]` as its first two values: https://github.com/AcademySoftwareFoundation/OpenCue/blob/e7c38c6bf5a39eec650a1f7a3851dabcc10d6f48/rqd/rqd/rqmachine.py#L217-L219 So the following lines are running a regex against `None`, which results in a `TypeError`:...
If so configured, RQD will run a frame with the permissions of the submitting user. https://github.com/AcademySoftwareFoundation/OpenCue/blob/master/rqd/rqd/rqcore.py#L472 With these elevated permissions, it creates the frame's log file: https://github.com/AcademySoftwareFoundation/OpenCue/blob/master/rqd/rqd/rqcore.py#L523 Later, to determine...