Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Schedules can be added and controlled by the CDAP CLI and the Lifecycle the CDAP CLI and the Lifecycle HTTP RESTful API. The status The status of a schedule can schedule can be retrieved, and individual schedules can be addedbe added, enabled enabled, or disabled.

When a schedule is initially deployed, it is in a disabled state; it needs to be enabled before it starts executing workflows.

...

Schedules can be defined as part of application deployment, by calling schedule() in the application's configure() method; or they can be managed separately from application deployment through the HTTP RESTful API. This can create a dilemma: After modifiying schedules through REST, redeploying the application, which may happen for reasons unrelated to the schedules, would undo all those changes and reinstate the schedules defined by the configure() method. Because that is undesired, CDAP provides an option to configure whether schedules are controlled by the configure() method or not. This option is called app.deploy.update.schedules and is given as a field of the application the application deployment request.

  • If this option is true, then application deployment will replace all schedules for the application with the schedules given by the configure() method;

  • if it is false, application deployment will not change any schedules, except that if the application is updated, all schedules for programs that do not exist any longer after the update are deleted.

...