Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 907 Bytes

04-advanced_workflow.md

File metadata and controls

29 lines (21 loc) · 907 Bytes

Advanced Workflow

Process execution flow

TODO

  • task resolution & blocking
  • wrapping execution in subprocess
  • errors & skips
  • orphan tasks

Events

Events are being send around process execution (see CleverAge\ProcessBundle\Event\ProcessEvent) :

  • cleverage_process.start : on process start
  • cleverage_process.end : on successful process end
  • cleverage_process.fail : on failed process end (with the associated error)

Another event is send when a process is executed with the CLI (see CleverAge\ProcessBundle\Event\ConsoleProcessEvent) :

  • cleverage_process.cli.init : before executing any process, giving access to console Input/Output objects

You can also use EventDispatcherTask to manually trigger an event in the middle of a process.

Parallelization

TODO

  • ProcessLauncherTask
  • EnqueueBundle
  • pthread