Skip to content

Commit 8bae8c6

Browse files
committed
Merge branch 'master' of https://github.com/TACC/abaco
2 parents 1c13b2c + e40dd5e commit 8bae8c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/binary_message_classifier/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,22 @@ Sending binary JPEG file to actor as message with the ``application/octet-stream
5858
.. code-block:: python
5959
6060
result = ag.actors.sendMessage(actorId=actor_data['id'],
61-
body={'binary': binary_image},
61+
body=binary_image,
6262
headers={'Content-Type': 'application/octet-stream'})
6363
6464
The following returns information pertaining to the execution:
6565

6666
.. code-block:: python
6767
6868
execution = ag.actors.getExecution(actorId=actor_data['id'],
69-
executionId = result['executionId'])
69+
executionId=result['executionId'])
7070
7171
Once the execution has complete, the logs can be called with the following:
7272

7373
.. code-block:: python
7474
75-
exec_info = requests.get('{}/actors/v2/{}/executions/{}'.format(url, actor_id, exec_id),
76-
headers={'Authorization': 'Bearer {}'.format(token)})
75+
executionLogs = ag.actors.getExecutionLogs(actorId=actor_data['id'],
76+
executionId=result['executionId'])
7777
7878
Extra info
7979
~~~~~~~~~~

0 commit comments

Comments
 (0)