pipen-cli-gbatch 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pipen-cli-gbatch might be problematic. Click here for more details.

@@ -79,7 +79,7 @@ from pipen.cli import CLIPlugin
79
79
  from pipen.scheduler import GbatchScheduler
80
80
  from pipen_poplog import LogsPopulator
81
81
 
82
- __version__ = "0.1.1"
82
+ __version__ = "0.1.3"
83
83
  __all__ = ("CliGbatchPlugin", "CliGbatchDaemon")
84
84
  MOUNTED_CWD = "/mnt/disks/.cwd"
85
85
 
@@ -200,6 +200,10 @@ class CliGbatchDaemon:
200
200
  target: The target mount path inside the container.
201
201
  """
202
202
  mount = self.config.get("mount", [])
203
+ if not isinstance(mount, (list, tuple, set)):
204
+ mount = [mount]
205
+ else:
206
+ mount = list(mount)
203
207
  # mount the workdir
204
208
  mount.append(f"{source}:{target}")
205
209
 
@@ -320,6 +324,8 @@ class CliGbatchDaemon:
320
324
  stdout_file = None
321
325
  else:
322
326
  stdout_file = AnyPath(f"{self._command_workdir}/run-latest.log")
327
+ if stdout_file.exists():
328
+ stdout_file.unlink()
323
329
 
324
330
  plugins.append(XquteCliGbatchPlugin(stdout_file=stdout_file))
325
331
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipen-cli-gbatch
3
- Version: 0.1.1
3
+ Version: 0.1.3
4
4
  Summary: A pipen cli plugin to run command via Google Cloud Batch
5
5
  License: MIT
6
6
  Author: pwwang
@@ -0,0 +1,6 @@
1
+ pipen_cli_gbatch/__init__.py,sha256=KvZHHmKXybV0EgCb4dod6gaBmhCy4Rnjj7_Q8DIos-8,32908
2
+ pipen_cli_gbatch/daemon_args.toml,sha256=XrCDwTaJ7xPgGLtZev4qikjrZWqixdE8tqSsFnIvmjc,7381
3
+ pipen_cli_gbatch-0.1.3.dist-info/METADATA,sha256=efFLFepleP6t7iHA25X3cRTTcVFgQ1ogQjRmdfLcH4Y,11301
4
+ pipen_cli_gbatch-0.1.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
5
+ pipen_cli_gbatch-0.1.3.dist-info/entry_points.txt,sha256=Z9NLeCpRo-rb8wss5mB5TBcG-_RbdlPA49b8Ma5pvQA,57
6
+ pipen_cli_gbatch-0.1.3.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- pipen_cli_gbatch/__init__.py,sha256=_8YcTVxCzFRfD-mf9bXP4tplcEhMkFFlOuVkla-jFas,32698
2
- pipen_cli_gbatch/daemon_args.toml,sha256=XrCDwTaJ7xPgGLtZev4qikjrZWqixdE8tqSsFnIvmjc,7381
3
- pipen_cli_gbatch-0.1.1.dist-info/METADATA,sha256=kvLiPVSXeqLJeNvFuR2TS_o-lQw9uoSjNBfYLcg_MoI,11301
4
- pipen_cli_gbatch-0.1.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
5
- pipen_cli_gbatch-0.1.1.dist-info/entry_points.txt,sha256=Z9NLeCpRo-rb8wss5mB5TBcG-_RbdlPA49b8Ma5pvQA,57
6
- pipen_cli_gbatch-0.1.1.dist-info/RECORD,,