diff --git a/docs/source/tutorial.ipynb b/docs/source/tutorial.ipynb index fe25892d..af1ed795 100644 --- a/docs/source/tutorial.ipynb +++ b/docs/source/tutorial.ipynb @@ -281,7 +281,7 @@ " def continue_fn(self):\n", " print('continuing')\n", " # message is stored in the process status\n", - " return plumpy.Kill('I was killed')\n", + " return plumpy.Kill(plumpy.KillMessage.build('I was killed'))\n", "\n", "\n", "process = ContinueProcess()\n", diff --git a/src/plumpy/process_comms.py b/src/plumpy/process_comms.py index 5727bdae..cd6e7238 100644 --- a/src/plumpy/process_comms.py +++ b/src/plumpy/process_comms.py @@ -46,10 +46,6 @@ class Intent: MessageType = Dict[str, Any] -# PAUSE_MSG: MessageType = {INTENT_KEY: Intent.PAUSE, MESSAGE_KEY: None} -# PLAY_MSG: MessageType = {INTENT_KEY: Intent.PLAY, MESSAGE_KEY: None} -# STATUS_MSG: MessageType = {INTENT_KEY: Intent.STATUS, MESSAGE_KEY: None} - class PlayMessage: @classmethod