config.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [net]
  2. Id = 12245
  3. Listen = "tcp:localhost:12345"
  4. As = "tcp:10.0.0.1:12345"
  5. Command = "unix:/tmp/bdjncl"
  6. [[peers]]
  7. As = "tcp:localhost:12346"
  8. [[peers.Skills]]
  9. Name = "test"
  10. [[peers.Skills.Inputs]]
  11. Name = "video"
  12. Mime = "application/mod"
  13. [[peers.Skills.Outputs]]
  14. Name = "result"
  15. Mime = "application/json"
  16. [[peers]]
  17. As = "tcp:localhost:12347"
  18. [[peers.Skills]]
  19. Name = "test"
  20. [[peers.Skills.Inputs]]
  21. Name = "video"
  22. Mime = "application/mod"
  23. [[peers.Skills.Outputs]]
  24. Name = "result"
  25. Mime = "application/json"
  26. [[jobs]]
  27. [jobs.skill]
  28. Name = "test"
  29. [[jobs.skill.Inputs]]
  30. Name = "video"
  31. Mime = "application/mod"
  32. [[jobs.skill.Outputs]]
  33. Name = "result"
  34. Mime = "application/json"
  35. [[jobs.Step]]
  36. Type = "s3-download"
  37. Cmd = "\"$input_video\""
  38. [[jobs.Step]]
  39. Type = "sh"
  40. Cmd = "/bin/echo \"$input_video\" \"$output_result\""
  41. [[jobs]]
  42. [jobs.skill]
  43. Name = "test2"
  44. [[jobs.skill.Inputs]]
  45. Name = "video"
  46. Mime = "application/mod"
  47. [[jobs.skill.Outputs]]
  48. Name = "result"
  49. Mime = "application/json"
  50. [[jobs.Step]]
  51. Type = "sh"
  52. Cmd = "/bin/echo \"$input_video\" \"$output_result\""
  53. [[jobs.Step]]
  54. Type = "s3-download"
  55. Cmd = "\"$input_video\""
  56. [[states]]
  57. Name = "test"
  58. Kind = "running"
  59. Order = 1