Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/TACC/abaco
Browse files Browse the repository at this point in the history
  • Loading branch information
joestubbs committed Nov 10, 2020
2 parents 1c13b2c + e40dd5e commit 8bae8c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions samples/binary_message_classifier/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ Sending binary JPEG file to actor as message with the ``application/octet-stream
.. code-block:: python
result = ag.actors.sendMessage(actorId=actor_data['id'],
body={'binary': binary_image},
body=binary_image,
headers={'Content-Type': 'application/octet-stream'})
The following returns information pertaining to the execution:

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

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

0 comments on commit 8bae8c6

Please sign in to comment.