@@ -123,6 +123,7 @@ def main():
|
||||
job_i = 3009
|
||||
flow_id = 4001
|
||||
|
||||
runner_id = 2001
|
||||
print_header("actor.create")
|
||||
actor = client.call("actor.create", {
|
||||
"actor": {
|
||||
@@ -147,6 +148,20 @@ def main():
|
||||
}
|
||||
})
|
||||
pretty_print(context)
|
||||
print_header("runner.create")
|
||||
runner = client.call("runner.create", {
|
||||
"context_id": context_id,
|
||||
"runner": {
|
||||
"id": runner_id,
|
||||
"pubkey": "", # leave empty to route by IP
|
||||
"address": "127.0.0.1",
|
||||
"topic": f"runner{runner_id}",
|
||||
"script_type": "Python",
|
||||
"local": True,
|
||||
"secret": "demo-secret"
|
||||
}
|
||||
})
|
||||
pretty_print(runner)
|
||||
|
||||
print_header("job.create - A (root)")
|
||||
jobA = client.call("job.create", {
|
||||
|
Reference in New Issue
Block a user