https://github.com/cleverage/enqueue-process-bundle
Allow the process bundle to work with Enqueue
https://github.com/cleverage/enqueue-process-bundle
Last synced: 3 months ago
JSON representation
Allow the process bundle to work with Enqueue
- Host: GitHub
- URL: https://github.com/cleverage/enqueue-process-bundle
- Owner: cleverage
- License: mit
- Archived: true
- Created: 2018-11-17T21:28:45.000Z (over 7 years ago)
- Default Branch: v1.0-dev
- Last Pushed: 2021-03-08T10:34:33.000Z (about 5 years ago)
- Last Synced: 2025-03-18T13:46:49.886Z (about 1 year ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CleverAge/ProcessEnqueueBundle Documentation
============================================
This bundle allows you to connect tasks from the process bundle to some consumers that launch processes.
This allows to multi-thread/parallelize processes.
## Important notice
Use events to notify consumers that something has happened and use commands when you want to wait for the result of an
action.
You need to statically map topics and commands to consumers in this bundle configuration else it will simply not work
without any notice.
## Quick example
````yaml
clever_age_process:
configurations:
# This process will dispatch events to the queue in a specific topic
import.csv:
tasks:
# ...
# Series of tasks that output an scalar or an array of scalar
push_event:
service: '@CleverAge\EnqueueProcessBundle\Task\PushEventTask'
options:
topic: import_denormalize
# This process will receive the output of the previous process through the queue
import.denormalize:
tasks:
# This is just an example
denormalize:
service: '@CleverAge\ProcessBundle\Task\Serialization\DenormalizerTask'
options:
class: Foo\Bar
outputs: [...] # Do stuff
clever_age_process_enqueue:
topics:
import_denormalize: # Map a topic to a process
process: import.denormalize
````