Skip to content

Commit 25ae98f

Browse files
author
Chris Turner
committed
06-distributed-computing_jobs_by_key.rst: dj.hash.key_hash -> dj.key_hash
1 parent fcffcc0 commit 25ae98f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs-parts/computation/06-distributed-computing_jobs_by_key.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11

2-
This can be done by using `dj.hash.key_hash` to convert the key as follows:
2+
This can be done by using `dj.key_hash` to convert the key as follows:
33

44
.. code-block:: python
55
6-
In [4]: schema.jobs & {'key_hash' : dj.hash.key_hash({'id': 2})}
6+
In [4]: schema.jobs & {'key_hash' : dj.key_hash({'id': 2})}
77
Out[4]:
88
*table_name *key_hash status key error_message error_stac user host pid connection_id timestamp
99
+------------+ +------------+ +--------+ +--------+ +------------+ +--------+ +------------+ +-------+ +--------+ +------------+ +------------+
1010
__job_results c81e728d9d4c2f error =BLOB= KeyboardInterr =BLOB= datajoint@localhost localhost 15571 59 2017-09-04 14:
1111
(Total: 1)
1212
13-
In [5]: (schema.jobs & {'key_hash' : dj.hash.key_hash({'id': 2})}).delete()
13+
In [5]: (schema.jobs & {'key_hash' : dj.key_hash({'id': 2})}).delete()
1414
15-
In [6]: schema.jobs & {'key_hash' : dj.hash.key_hash({'id': 2})}
15+
In [6]: schema.jobs & {'key_hash' : dj.key_hash({'id': 2})}
1616
Out[6]:
1717
*table_name *key_hash status key error_message error_stac user host pid connection_id timestamp
1818
+------------+ +----------+ +--------+ +--------+ +------------+ +--------+ +------+ +------+ +-----+ +------------+ +-----------+

0 commit comments

Comments
 (0)