OmenApps / django-postgresql-dag

Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
Apache License 2.0
41 stars 6 forks source link

Test 04 (deep dag): Issues with multiprocessing #11

Open Nix3c3r opened 2 years ago

Nix3c3r commented 2 years ago

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.

JackAtOmenApps commented 2 years ago

@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.