spring-cloud-dataflow-ui icon indicating copy to clipboard operation
spring-cloud-dataflow-ui copied to clipboard

Update SCDF-UI to use the latest cron.expression parameter in the '/tasks/schedules' API

Open sanchezjm opened this issue 10 months ago • 1 comments
trafficstars

Hi,

According to the following change

https://github.com/spring-cloud/spring-cloud-dataflow/commit/cf4e5817cd8ee9b7ed7bf4cc7df6b8ab484e1bd3

with the current version of the ui, tasks cannot be scheduled.

The parameter to create the cron expression was changed from this one

/tasks/schedules?taskDefinitionName=timestamp&scheduleName=timestamp&arguments=&properties=scheduler.cron.expression=30%20*%20*%20*%20MON-FRI

to this one:

/tasks/schedules?taskDefinitionName=timestamp&scheduleName=timestamp&arguments=&properties=deployer.timestamp.cron.expression=30%20*%20*%20*%20MON-FRI

So that, right now, with the current 3.0.0-SNAPSHOT version, it gives the following error message:

"An error occurred Only deployment property keys starting with 'app.' or 'deployer.' or 'version.' allowed. Not scheduler.cron.expression=30 * * * MON-FRI"

We have seen recent adaptations to the SCDF apis like this one, but they have not taken into account such change https://github.com/spring-cloud/spring-cloud-dataflow-ui/issues/2021

Many thanks for your attention.

sanchezjm avatar Jan 17 '25 14:01 sanchezjm

Thank you for reporting the issue.

cppwfs avatar Jan 17 '25 15:01 cppwfs