command.yaml 629 B

123456789101112131415161718192021
  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 # <- Replace with your task id...
  12. namespace: your-namespace # <- Replace with your namespace...
  13. tasks:
  14. - id: python_command
  15. type: io.kestra.plugin.scripts.python.Commands
  16. commands:
  17. - python /app/scripts/your-python-script.py
  18. runner: PROCESS # or DOCKER (might be deprecated in the future) use TaskRunner instead