-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid hardcoded unpicklable_properties in task.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
import copy | ||
import functools | ||
|
||
import luigi | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
riga
Author
Contributor
|
||
from luigi import six | ||
|
||
from luigi import parameter | ||
|
@@ -686,7 +687,7 @@ def _dump(self): | |
pickle.dumps(self) | ||
""" | ||
unpicklable_properties = ('set_tracking_url', 'set_status_message', 'set_progress_percentage') | ||
unpicklable_properties = tuple(luigi.worker.TaskProcess.forward_reporter_callbacks.values()) | ||
reserved_properties = {} | ||
for property_name in unpicklable_properties: | ||
if hasattr(self, property_name): | ||
|
Just wondering if this will cause any cyclic dependency issues.