Skip to content

Commit

Permalink
fix #65
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius committed Apr 8, 2024
1 parent bfd93cb commit 053786b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nodeorc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""NodeORC: Automated edge and cloud image-based discharge estimation with OpenRiverCam"""
import os
__version__ = "0.1.4"
__version__ = "0.1.5"

__home__ = os.path.join(os.path.expanduser("~"), ".nodeorc")
if not(os.path.isdir(__home__)):
Expand Down
8 changes: 4 additions & 4 deletions nodeorc/tasks/local_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ def _set_results_to_final_path(self, cur_path, dst_path, filename, task_path):

def _shutdown_or_not(self):
if self.settings["shutdown_after_task"]:
self.logger.info("Task done! Shutting down...")
os.system("/sbin/shutdown -h now")
os.system("/bin/sudo /sbin/shutdown -h now")
os.system("/usr/bin/sudo /sbin/shutdown -h now")
self.logger.info("Task done! Shutting down in 15 seconds")
os.system("/usr/bin/sleep 15 && /sbin/shutdown -h now")
os.system("/usr/bin/sleep 15 && /bin/sudo /sbin/shutdown -h now")
os.system("/usr/bin/sleep 15 && /usr/bin/sudo /sbin/shutdown -h now")

def _post_callbacks(self, callbacks):
"""
Expand Down

0 comments on commit 053786b

Please sign in to comment.