django-postgresql-dag icon indicating copy to clipboard operation
django-postgresql-dag copied to clipboard

Test 04 (deep dag): Issues with multiprocessing

Open Nix3c3r opened this issue 3 years ago • 1 comments

Hi I have problems to get test_04_deep_dag() running correctly. When running as is, it results into an AttributeError. The error message states problems with local objects, which is common for multiprocessing: AttributeError: Can't pickle local object 'DagTestCase.test_04_deep_dag.<locals>.run_test' The line it fails is: https://github.com/OmenApps/django-postgresql-dag/blob/20c47971a56c62aed3616d4d29fafcfb79204efd/tests/test.py#L625

I'm running this from Windows. As far as I know Windows systems have pickle-issues. Maybe there is an alternative to using multiprocessing? One can also not use signal, as this is missing some functionality on Windows.

Nix3c3r avatar Jan 03 '22 08:01 Nix3c3r

@Nix3c3r Thank you for pointing this out. I need to add some better CI for this repo to check for these sorts of issues, and will see about how I can resolve this. I've added this to my to-do list.

JackAtOmenApps avatar Jan 10 '22 03:01 JackAtOmenApps