Skip to content
Browse files

add info about launching task from another task

  • Loading branch information...
1 parent 70c4903 commit ad21c538a2ea5b5de876b2b04b9ac5f80b921157 @pyeremenko pyeremenko committed
Showing with 23 additions and 0 deletions.
  1. +23 −0 README.md
View
23 README.md
@@ -223,6 +223,29 @@ f.close()
payload = json.loads(contents)
```
+## Queueing a task from another task
+
+If you need to run slave task from master task you should add two more lines to master worker file:
+
+MasterTask
+
+```ruby
+runtime "python"
+exec "master_task.py"
+
+# install iron_worker on the server side
+pip 'iron_worker'
+remote
+```
+
+After it you can call your uploaded task from code:
+
+```python
+from iron_worker import *
+worker = IronWorker(project_id=your_project_id, token=your_project_token)
+task = worker.queue(code_name="SlaveTask")
+```
+
# Full Documentation
You can find more documentation here:

0 comments on commit ad21c53

Please sign in to comment.
Something went wrong with that request. Please try again.