2024-04-21 12:02:19 +02:00
|
|
|
---
|
2024-04-19 14:41:05 +02:00
|
|
|
# Kestra Python Command Template
|
|
|
|
# ---
|
2024-04-21 11:59:31 +02:00
|
|
|
#
|
2024-04-19 14:41:05 +02:00
|
|
|
# This template is a simple Python script.
|
2024-04-21 11:59:31 +02:00
|
|
|
#
|
2024-04-19 14:41:05 +02:00
|
|
|
# usage:
|
|
|
|
# make sure the Kestra instance can access the /app/scripts/your-python-script.py file
|
|
|
|
# if you're running Kestra in Docker, use a volume to mount the file/directory.
|
|
|
|
|
|
|
|
id: python-command
|
2024-04-21 12:06:15 +02:00
|
|
|
namespace: # your-namespace
|
2024-04-19 14:41:05 +02:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- id: python_command
|
|
|
|
type: io.kestra.plugin.scripts.python.Commands
|
|
|
|
commands:
|
|
|
|
- python /app/scripts/your-python-script.py
|
|
|
|
runner: PROCESS # or DOCKER (might be deprecated in the future) use TaskRunner instead
|