Tanzu Data Flow on Kubernetes task schedule fails
search cancel

Tanzu Data Flow on Kubernetes task schedule fails

book

Article ID: 430949

calendar_today

Updated On:

Products

VMware Tanzu Data Intelligence

Issue/Introduction

When attempting to create a task schedule using the Tanzu Data Flow v2.0.1 Dashboard (UI), the operation fails with a validation error. The UI displays an error message similar to the following:

Only deployment property keys starting with 'app.' or 'deployer.' or 'version.' allowed. Not scheduler.cron.expression=* * * * *

Environment

TDF 2.x

Cause

This issue is caused by a software defect in the Tanzu Data Flow v2.0.1 UI components. When a user enters a value in the "Cron Expression" field, the Dashboard automatically prepends the property key scheduler.cron.expression.

However, the Data Flow Server’s validation logic for task schedules strictly permits only three prefixes for deployment properties:

app.*

deployer.*

version.*

Because the UI injects a property starting with scheduler., the server rejects the request as malformed.

Resolution

This issue is resolved in TDF v2.0.3

To bypass the UI validation error, you can create the task schedule directly via the Data Flow REST API. This allows you to manually specify the correct property prefix (deployer.) that the server expects.

Execute the following curl command, replacing the placeholders with your environment-specific details:

curl -X POST "http://<dataflow-server>:<port>/tasks/schedules" \
  -d "scheduleName=<your-schedule-name>" \
  -d "taskDefinitionName=<your-task-definition>" \
  -d "properties=deployer.<your-task-definition>.cron.expression=*/5 * * * *" \
  -d "platform=default"