summaryrefslogtreecommitdiff
path: root/rq/defaults.py
diff options
context:
space:
mode:
authorCyril Chapellier <tchapi@users.noreply.github.com>2023-05-01 06:20:40 +0200
committerGitHub <noreply@github.com>2023-05-01 11:20:40 +0700
commit08cb311c554bdfd3ccaa846b6e3fbd1971b32310 (patch)
tree54b005bec180f104ba34f5a5aa3f1285bcc8f98c /rq/defaults.py
parent36f5c88ca21ff30fb799e7d10b2f7b9bef4e585a (diff)
downloadrq-08cb311c554bdfd3ccaa846b6e3fbd1971b32310.tar.gz
[Results] Allow unserializable return values (#1888)
* fix: allow unserializable return values * fix: review comments
Diffstat (limited to 'rq/defaults.py')
-rw-r--r--rq/defaults.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rq/defaults.py b/rq/defaults.py
index 2a3d57a..3744c12 100644
--- a/rq/defaults.py
+++ b/rq/defaults.py
@@ -93,4 +93,10 @@ https://docs.python.org/3/library/logging.html#logrecord-attributes
DEFAULT_DEATH_PENALTY_CLASS = 'rq.timeouts.UnixSignalDeathPenalty'
""" The path for the default Death Penalty class to use.
Defaults to the `UnixSignalDeathPenalty` class within the `rq.timeouts` module
+"""
+
+
+UNSERIALIZABLE_RETURN_VALUE_PAYLOAD = 'Unserializable return value'
+""" The value that we store in the job's _result property or in the Result's return_value
+in case the return value of the actual job is not serializable
""" \ No newline at end of file