Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions docs-parts/computation/06-distributed-computing_jobs_by_key.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

This can be done by using `dj.internal.hash` to convert the key as follows:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This can be done by using `dj.internal.hash` to convert the key as follows:
This can be done by using `dj.key_hash` to convert the key as follows:


.. code-block:: matlab

> kh = dj.internal.hash(key);
> Lab.Jobs() & struct('key_hash', kh(1:32))


ans =


Object Lab.Jobs

:: the job reservation table for +Lab ::

TABLE_NAME KEY_HASH status error_message user host pid connection_id timestamp key error_stack
_______________________ ____________________________________ ____________ _____________ ________ _________ __________ _____________ _______________________ __________ ___________

{'Lab.SessionAnalysis'} {'jA9sN_5PvusWwmznLGcAZbTn5pGtba-z'} {'error'} {0×0 char} {'datajoint@localhost'} {'localhost'} 6.5356e+05 1919 {'2021-01-22 23:50:07'} {'=BLOB='} {'=BLOB='}

1 tuples (0.127 s)

> del(Lab.Jobs() & struct('key_hash', kh(1:32)));

> Lab.Jobs() & struct('key_hash', kh(1:32))

ans =


Object Lab.Jobs

:: the job reservation table for +Lab ::

0 tuples (0.0309 s)