Skip to content

Commit

Permalink
Bump version to 0.0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
GlassOfWhiskey committed Apr 8, 2021
1 parent 00adc7b commit ebedb2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"kubernetes_asyncio",
"uvloop"
],
python_requires=">=3.7, <4",
python_requires=">=3.8, <4",
entry_points={"console_scripts": ["streamflow=streamflow.main:run"]},
zip_safe=True,
classifiers=[
Expand All @@ -53,7 +53,7 @@
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: System :: Distributed Computing",
Expand Down
11 changes: 5 additions & 6 deletions streamflow/deployment/connector/queue_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ async def _run_batch_command(self,
stdin: Optional[Union[int, Text]] = None,
stdout: Union[int, Text] = asyncio.subprocess.STDOUT,
stderr: Union[int, Text] = asyncio.subprocess.STDOUT) -> Text:
batch_command = "sbatch --parsable {workdir} {job_name} {stdin} {stdout} {stderr} {helper_file}".format(
batch_command = "sbatch --parsable {workdir} {stdin} {stdout} {stderr} {helper_file}".format(
workdir="-D {workdir}".format(workdir=workdir) if workdir is not None else "",
job_name="-J \"{job_name}\"".format(job_name=job_name),
stdin="-i \"{stdin}\"".format(stdin=stdin) if stdin is not None else "",
stdout="-o \"{stdout}\"".format(stdout=stdout) if stdout != STDOUT else "",
stderr="-e \"{stderr}\"".format(stderr=stderr) if stderr != STDOUT and stderr != stdout else "",
Expand Down Expand Up @@ -239,8 +238,9 @@ async def _get_running_jobs(self,
resource: Text) -> MutableSequence[Text]:
async with self._get_ssh_client(resource) as ssh_client:
return (await ssh_client.run(
"qstat -x {job_ids} | tail -n +3 | awk '{{if($5 != \"E\" && $5 != \"F\") {{print $1}}}}'".format(
job_ids=" ".join(self.scheduledJobs)
"qstat -awx {job_ids} | grep '{grep_ids}' | awk '{{if($10 != \"E\" && $10 != \"F\") {{print $1}}}}'".format(
job_ids=" ".join(self.scheduledJobs),
grep_ids="\\|".join(self.scheduledJobs)
))).stdout.strip().splitlines()

async def _remove_jobs(self,
Expand All @@ -257,9 +257,8 @@ async def _run_batch_command(self,
stdin: Optional[Union[int, Text]] = None,
stdout: Union[int, Text] = asyncio.subprocess.STDOUT,
stderr: Union[int, Text] = asyncio.subprocess.STDOUT) -> Text:
batch_command = "{workdir} qsub {job_name} {stdin} {stdout} {stderr} {helper_file}".format(
batch_command = "{workdir} qsub {stdin} {stdout} {stderr} {helper_file}".format(
workdir="cd {workdir} &&".format(workdir=workdir) if workdir is not None else "",
job_name="-N \"job-{job_name}\"".format(job_name=job_name),
stdin="-i \"{stdin}\"".format(stdin=stdin) if stdin is not None else "",
stdout=("-o \"{stdout}\"".format(stdout=stdout if stdout != STDOUT else utils.random_name())),
stderr="-e \"{stderr}\"".format(stderr=stderr) if stderr != STDOUT and stderr != stdout else "",
Expand Down
2 changes: 1 addition & 1 deletion streamflow/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.0.25"
VERSION = "0.0.26"

0 comments on commit ebedb2c

Please sign in to comment.