PHP Classes
elePHPant
Icontem

File: src/Resources/config/services.yml

Recommend this page to a friend!
  Classes of Emil Kilhage  >  Symfony Task bundle  >  src/Resources/config/services.yml  >  Download  
File: src/Resources/config/services.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Symfony Task bundle
Schedule task using cron with Symfony
Author: By
Last change: Added marking of processes as crashed
Date: 1 year ago
Size: 1,967 bytes
 

 

Contents

Class file image Download
parameters:
    glooby_task.queue_processor.limit: 10

services:
    glooby_task.ping:
        class: Glooby\TaskBundle\Task\PingTask
        tags:
            - { name: glooby.scheduled_task }

    glooby_task.schedule_registry:
        class: Glooby\TaskBundle\Schedule\ScheduleRegistry
        calls:
            - [setReader,    ['@annotations.reader']]
            - [setContainer, ['@service_container']]

    glooby_task.schedule_synchronizer:
        class: Glooby\TaskBundle\Synchronizer\ScheduleSynchronizer
        calls:
            - [setDoctrine,         ['@doctrine']]
            - [setScheduleRegistry, ['@glooby_task.schedule_registry']]

    glooby_task.task_manager:
        class: Glooby\TaskBundle\Manager\TaskManager
        calls:
            - [setDoctrine,         ['@doctrine']]

    glooby_task.task_runner:
        class: Glooby\TaskBundle\Task\TaskRunner
        calls:
            - [setLogger,       ['@logger']]
            - [setContainer,    ['@service_container']]
            - [setTaskManager,  ['@glooby_task.task_manager']]

    glooby_task.queue_pruner:
        class: Glooby\TaskBundle\Queue\QueuePruner
        calls:
            - [setDoctrine,         ['@doctrine']]
        tags:
            - { name: glooby.scheduled_task }

    glooby_task.queue_scheduler:
        class: Glooby\TaskBundle\Queue\QueueScheduler
        calls:
            - [setDoctrine,    ['@doctrine']]
            - [setTaskManager, ['@glooby_task.task_manager']]

    glooby_task.queue_processor:
        class: Glooby\TaskBundle\Queue\QueueProcessor
        calls:
            - [setDoctrine,     ['@doctrine']]
            - [setLimit,        ['%glooby_task.queue_processor.limit%']]
            - [setDebug,        ['%kernel.debug%']]

    glooby_task.queue_monitor:
        class: Glooby\TaskBundle\Queue\QueueMonitor
        calls:
            - [setDoctrine,     ['@doctrine']]
            - [setTaskManager,  ['@glooby_task.task_manager']]