@@ -214,45 +214,6 @@ result: Result = workflow.execute(
214214)
215215```
216216
217- > [ !NOTE]
218- > So, this package provide the ` Schedule ` template for this action, and you can
219- > pass the parameters dynamically for changing align with that running time by
220- > the ` release ` prefix.
221- >
222- > ``` yaml
223- > schedule-run-local-wf:
224- >
225- > # Validate model that use to parsing exists for template file
226- > type: Schedule
227- > workflows:
228- >
229- > # Map existing workflow that want to deploy with scheduler application.
230- > # It allows you to pass release parameter that dynamic change depend on the
231- > # current context of this scheduler application releasing that time.
232- > - name: run-py-local
233- > params:
234- > source-extract: "USD-THB"
235- > run-date: "${{ release.logical_date }}"
236- > ```
237- >
238- > The main method of the `Schedule` model that use to running is `pending`. If you
239- > do not pass the `stop` date on this method, it will use config with
240- > `WORKFLOW_APP_STOP_BOUNDARY_DELTA` key for generate this stop date.
241- >
242- > ```python
243- > from ddeutil.workflow import Schedule
244- >
245- > (
246- > Schedule
247- > .from_conf("schedule-run-local-wf")
248- > .pending(stop=None)
249- > )
250- > ```
251-
252- > [!WARNING]
253- > The scheduler feature is the expensive feature of this project. You should
254- > avoid to use it and find a scheduler tool instead.
255-
256217## :cookie : Configuration
257218
258219The main configuration that use to dynamic changing this workflow engine for your
@@ -282,9 +243,6 @@ it will use default value and do not raise any error to you.
282243| ** TRACE_ENABLE_WRITE** | Log | ` false ` | |
283244| ** AUDIT_PATH** | Log | ` ./audits ` | |
284245| ** AUDIT_ENABLE_WRITE** | Log | ` true ` | A flag that enable logging object saving log to its destination. |
285- | **MAX_PROCESS** | App | `2` | The maximum process worker number that run in scheduler app module. |
286- | **MAX_SCHEDULE_PER_PROCESS** | App | `100` | A schedule per process that run parallel. |
287- | **STOP_BOUNDARY_DELTA** | App | `'{"minutes" : 5, "seconds": 20}'` | A time delta value that use to stop scheduler app in json string format. |
288246
289247** API Application** :
290248
@@ -294,7 +252,6 @@ only.
294252| Environment | Component | Default | Description |
295253| :---------------------------| :-----------:| ---------| ------------------------------------------------------------------------------------|
296254| ** ENABLE_ROUTE_WORKFLOW** | API | ` true ` | A flag that enable workflow route to manage execute manually and workflow logging. |
297- | **ENABLE_ROUTE_SCHEDULE** | API | `true` | A flag that enable run scheduler. |
298255
299256## :rocket : Deployment
300257
0 commit comments