Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Manually stop daemon after
verdi devel revive
test
There was a problem where the `verdi process pause` test in the `tests/cmdline/commands/test_process.py` would except because the timeout would be hit. The direct result was because the daemon worker could not load the node from the database, which in turns was because the session was in a pending rollback state. This was because a previous operation on the database excepted. This exception seemed to be due to the daemon trying to call `CalcJob.delete_state` or `Process.delete_checkpoint` in the `on_terminated` calls. For some reason, the update statement that would be executed for this, to remove the relevant attribute key, would match 0 rows. The suspicion is because the relevant node had already been removed from the database, probably because another test, ran between the two daemon tests, had cleaned the database and so the node no longer existed, but the process task somehow did. It is not quite clear exactly where the problem lies, but for now the temporary work-around is to manually stop the daemon in the first test, which apparently cleans the state such that the original exception is no longer hit and the daemon doesn't get stuck with an inconsistent session.
- Loading branch information