Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Respond to SIGINT and SIGTERM #275

Description

@eywalker

It will be useful if DataJoint can be aware of SIGINT (i.e. CTRL-C) and SIGTERM (e.g. terminating the terminal) when it's in the middle of populate with reserve_jobs=True. Currently, doing so leaves the tuple that the running process was working on hanging in the jobs table with the status reserved. Although this is not avoidable in case where the running process was paused (i.e. via SIGSTOP) or killed (i.e. via SIGKILL), for the above two signals, we can detect the signal and change the status in the job table to error before exiting. This will be really helpful to keep track of terminated populate processes.

Metadata

Metadata

Assignees

Labels

enhancementIndicates new improvements

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions