You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from conductor.client.orkes_clients import OrkesClients
112
+
113
+
clients = OrkesClients(config)
114
+
workflow_client = clients.get_workflow_client()
115
+
116
+
message_id = workflow_client.send_message(
117
+
workflow_id,
118
+
{"type": "notification", "text": "Hello from outside the workflow"},
119
+
)
120
+
```
121
+
122
+
---
123
+
124
+
## Error handling
125
+
126
+
| HTTP status | Reason | What to do |
127
+
|-------------|--------|------------|
128
+
|`404 Not Found`| Workflow ID does not exist | Verify the workflow was started successfully |
129
+
|`409 Conflict`| Workflow is not `RUNNING`| Check workflow status before sending |
130
+
|`429 Too Many Requests`| Queue is at capacity (default 1 000 messages) | Back off and retry, or increase `conductor.workflow-message-queue.maxQueueSize`|
131
+
132
+
```python
133
+
from conductor.client.http.rest import ApiException
0 commit comments