python_command.yaml 561 B

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