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

Add more logging on starting process errors #710

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

greenscientist
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@tahini tahini left a comment

Choose a reason for hiding this comment

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

Sounds good!

@tahini tahini merged commit 99a670a into chairemobilite:main Sep 8, 2023
tahini added a commit to tahini/transition that referenced this pull request Nov 7, 2024
fixes chairemobilite#710

* Cancelled jobs sometimes were not really cancelled if a checkpoint was
  set after the job status was set to cancelled in the main thread, but
  before the automatic task refresh every 5 seconds, so we refresh the
  task before updating it in the checkpoint update.
* Also, refreshing and saving the job would throw an error if the job
  is deleted from the DB and would kill the running thread, which would
  cause the trRouting process to be left defunct. So we add a catch when
  refreshing/updating the job and stopping the trRouting process is done
  in the finally block, to make sure it is always stopped, even in case of
  an exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

batchRouting: trRouting is sometimes left in defunct state
2 participants