Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] restart save process #2283

Merged
merged 8 commits into from
Jun 8, 2018
Merged

[Core] restart save process #2283

merged 8 commits into from
Jun 8, 2018

Conversation

philbucher
Copy link
Member

As discussed, to work with #2135

did some minor cleanup in the restart utility, now it works quite nicely :D

FYI @mpentek

pass

def ExecuteFinalize(self):
pass
Copy link
Member

@jcotela jcotela Jun 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion (maybe for a future PR): When I have had to use restart, it was often because I was running on a cluster with some limit on run-time for the cases. In such situations, I would just estimate how many time steps I could run in a single batch, then launch a job for that and ensure that the model part was serialized at the end of the job. I think it would make sense that the process allows this, which could be achieved by having an extra save on ExecuteFinalize (maybe only if explicily requested via json?).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine to me, we can speak tmr abt this

Copy link
Member

@jcotela jcotela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new features are OK but the new test fails on my machine


======================================================================
FAIL: test_save_restart_process (test_restart.TestRestart)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jcotela/Kratos/kratos/tests/test_restart.py", line 265, in test_save_restart_process
    self.assertTrue(os.path.isfile(base_file_name + str(i) + ".rest"))
AssertionError: False is not true

----------------------------------------------------------------------

@philbucher
Copy link
Member Author

Thanks for the review @jcotela
Travis also fails so I assume it is sth with the paths (again :) )

I guess you ran the all the tests with run_tests.py?

@philbucher
Copy link
Member Author

@jcotela I fixed the issue, it was as suspected a path problem
lets see if Travis is fine now

Copy link
Member

@jcotela jcotela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests run now (yes, I am using the main test script)

@philbucher philbucher merged commit 3a9d465 into master Jun 8, 2018
@philbucher philbucher deleted the core/restart-save-process branch June 8, 2018 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants