-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support command line invocation (non-script) use #24
Comments
@aidanheerdegen, if I am not mistaken payu-run is a script itself? There is nothing stopping the user from providing this absolute path to |
It's an entrypoint, but yeah, good point https://github.com/payu-org/payu/blob/master/pyproject.toml#L47 It looks like this when invoked
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
from payu.subcommands.run_cmd import runscript
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(runscript()) |
I think Payu still runs the def submit_job(script, config, vars=None):
"""Submit a userscript the scheduler."""
# TODO: Temporary stub to replicate the old approach
sched_name = config.get('scheduler', 'pbs')
sched_type = scheduler_index[sched_name]
sched = sched_type()
cmd = sched.submit(script, config, vars)
print(cmd)
subprocess.check_call(shlex.split(cmd)) So the Payu qsub commands use |
Interesting ... I guess it could. |
We have a requirement to support SLURM with
payu
, butpayu
submits itself on the command line (doesn't use a script).To utilise
hpcpy
it would need to support this use case. Would this be difficult? What would be required?The text was updated successfully, but these errors were encountered: