python_command.yaml 563 B

12345678910111213141516171819
  1. # Kestra Python Command Template
  2. # ---
  3. #
  4. # This template is a simple Python script.
  5. #
  6. # usage:
  7. # make sure the Kestra instance can access the /app/scripts/your-python-script.py file
  8. # if you're running Kestra in Docker, use a volume to mount the file/directory.
  9. #
  10. id: python_command
  11. namespace: your_namespace # <-- Replace with your namespace...
  12. tasks:
  13. - id: python_job
  14. type: io.kestra.plugin.scripts.python.Commands
  15. commands:
  16. - python /app/scripts/your-python-script.py
  17. taskRunner:
  18. type: io.kestra.plugin.core.runner.Process