pipen-cli-gbatch 0.1.0__py3-none-any.whl → 0.1.1__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.0"
82
+ __version__ = "0.1.1"
83
83
  __all__ = ("CliGbatchPlugin", "CliGbatchDaemon")
84
84
  MOUNTED_CWD = "/mnt/disks/.cwd"
85
85
 
@@ -617,30 +617,45 @@ class XquteCliGbatchPlugin: # pragma: no cover
617
617
  scheduler: The scheduler instance.
618
618
  job: The job that started.
619
619
  """
620
- logger.info("Job is picked up by Google Batch, pulling stdout/stderr...")
620
+ logger.info("Job is picked up by Google Batch, pulling stdout/stderr ...")
621
621
  if not self.stdout_file:
622
622
  self.stdout_populator.logfile = scheduler.workdir.joinpath(
623
623
  "0", "job.stdout"
624
624
  )
625
625
  elif not self.stdout_file.exists():
626
- await asyncio.sleep(3) # wait a bit for the file to be created
626
+ logger.warning(f"Running logs file not found: {self.stdout_file}")
627
+ logger.warning(" Waiting for it to be created ...")
628
+ i = 0
629
+ while not self.stdout_file.exists():
630
+ await asyncio.sleep(3)
631
+ i += 1
632
+ if i >= 20:
633
+ break
634
+
627
635
  if not self.stdout_file.exists():
628
- logger.warning(f"Running logs not found: {self.stdout_file}")
629
636
  logger.warning(
630
- "Make sure pipen-log2file plugin is enabled for your pipeline."
637
+ " Still not found, falling back to pull logs from daemon ..."
638
+ )
639
+ logger.warning(
640
+ " Make sure pipen-log2file plugin is enabled for your pipeline."
631
641
  )
632
- logger.warning("Falling back to pull logs from daemon...")
633
642
  self.stdout_populator.logfile = scheduler.workdir.joinpath(
634
643
  "0", "job.stdout"
635
644
  )
636
645
  else:
646
+ logger.info(" Found the running logs, pulling ...")
637
647
  self.stdout_populator.logfile = (
638
648
  self.stdout_file.resolve()
639
649
  if self.stdout_file.is_symlink()
640
650
  else self.stdout_file
641
651
  )
642
652
  else:
643
- self.stdout_populator.logfile = self.stdout_file
653
+ self.stdout_populator.logfile = (
654
+ self.stdout_file.resolve()
655
+ if self.stdout_file.is_symlink()
656
+ else self.stdout_file
657
+ )
658
+
644
659
  self.stderr_populator.logfile = scheduler.workdir.joinpath("0", "job.stderr")
645
660
 
646
661
  @plugin.impl
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pipen-cli-gbatch
3
- Version: 0.1.0
3
+ Version: 0.1.1
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=_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,,
@@ -1,6 +0,0 @@
1
- pipen_cli_gbatch/__init__.py,sha256=e2nJIiWPFzlzNAbOxzTanCtXg0oot28HrxHpH7KGyxI,32264
2
- pipen_cli_gbatch/daemon_args.toml,sha256=XrCDwTaJ7xPgGLtZev4qikjrZWqixdE8tqSsFnIvmjc,7381
3
- pipen_cli_gbatch-0.1.0.dist-info/METADATA,sha256=sNcCQTI7p7ibwuWIFT-SQo8RT-gLbjlE8TO2Bv592Q0,11301
4
- pipen_cli_gbatch-0.1.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
5
- pipen_cli_gbatch-0.1.0.dist-info/entry_points.txt,sha256=Z9NLeCpRo-rb8wss5mB5TBcG-_RbdlPA49b8Ma5pvQA,57
6
- pipen_cli_gbatch-0.1.0.dist-info/RECORD,,