Skip to content

Commit

Permalink
envvars passed to worker with aRun
Browse files Browse the repository at this point in the history
- hrr plotting set to False
- stdout and stderr form worker passed to /home/aamks/worker.log
  • Loading branch information
kowalskiw committed Aug 23, 2023
1 parent a23efc2 commit 38c0003
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 260 deletions.
256 changes: 0 additions & 256 deletions evac/fire_dto.py

This file was deleted.

6 changes: 3 additions & 3 deletions manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def add_workers(self):# {{{

self._access_hosts()
for i in self.s.query("SELECT host FROM workers WHERE conf_enabled=1 ORDER BY network,host"):
Popen("ssh -f -o ConnectTimeout=3 {} \" nohup gearman -w -h {} -f aRun xargs python3 {}/evac/worker.py > /dev/null 2>&1 &\"".format(i['host'], os.environ['AAMKS_SERVER'], os.environ['AAMKS_PATH']), shell=True)
print("ssh -f -o ConnectTimeout=3 {} \" nohup gearman -w -h {} -f aRun xargs python3 {}/evac/worker.py > /dev/null 2>&1 &\"".format(i['host'], os.environ['AAMKS_SERVER'], os.environ['AAMKS_PATH']))

cmd = f"ssh -f -o ConnectTimeout=3 {i['host']} \"AAMKS_PATH={os.environ['AAMKS_PATH']} AAMKS_WORKER=gearman AAMKS_SERVER={os.environ['AAMKS_SERVER']} nohup gearman -w -h {os.environ['AAMKS_SERVER']} -f aRun xargs python3 {os.environ['AAMKS_PATH']}/evac/worker.py >> /home/aamks/worker.log 2>&1 &\""
Popen(cmd, shell=True)
print(cmd)
self._gearman_register_results_collector()

# }}}
Expand Down
2 changes: 1 addition & 1 deletion montecarlo/cfast_mcarlo.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def find_peak_hrr():
hrr.fuel_control(load_density * fire_area)
hrr.firefighting()

times, hrrs = hrr.get_old_format(plot=True)
times, hrrs = hrr.get_old_format(plot=False)
areas = list(npround(npa(hrrs) / hrrpua, 2))
flashover = t_up_to_hrr_peak if flashover else self.conf['simulation_time']*2

Expand Down

0 comments on commit 38c0003

Please sign in to comment.