AMP-SCZ / utility

Storehouse for all utility scripts
Apache License 2.0
0 stars 4 forks source link

shift_redcap_dates.py does not terminate if one of the spawned processed has error #83

Open tashrifbillah opened 1 year ago

tashrifbillah commented 1 year ago

It should because we added this block:

https://github.com/AMP-SCZ/utility/blob/5f1fd8b3c0ef712a592b18dcd0bf0dcb2cf1ac43/shift_redcap_dates.py#L121-L130

Way to reproduce

Just remove an entry from date_offset.csv that is in the beginning of date_offset.csv. Though we expect to see KeyError, it does not show anything. Rather it hangs indefinitely.

Interim solution

Make sure to run set_date_shifts.py so all entries are available in date_offset.csv.