Skip to content
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

Bug fixes to work with a flux version on a workstation #203

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pysqa/ext/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def submit_job(
)
self._transfer_data_to_remote(working_directory=working_directory)
output = self._execute_remote_command(command=command)
return int(output.split()[-1])
return output.split()[-1]

def enable_reservation(self, process_id):
"""
Expand Down
9 changes: 6 additions & 3 deletions pysqa/wrapper/flux.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
from pysqa.wrapper.generic import SchedulerCommands


command_lst = ["/bin/bash", "-i", "-c", "remote_flux"]


class FluxCommands(SchedulerCommands):
@property
def submit_job_command(self):
return ["flux", "batch"]
return command_lst + ["batch"]

@property
def delete_job_command(self):
return ["flux", "cancel"]
return command_lst + ["cancel"]

@property
def get_queue_status_command(self):
return ["flux", "jobs", "-a", "--no-header"]
return command_lst + ["jobs", "-a", "--no-header"]

@staticmethod
def get_job_id_from_output(queue_submit_output):
Expand Down
Loading