Skip to content

Workflow manager for launch multiple jobs with Bull.js

Notifications You must be signed in to change notification settings

eoko/bull-workflow-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Créer un workflow

  • Ajouter la configuration
#Name random
name: "My Flow"
#Endpoint /hook/flow/created
id: flow-created

requirements:
  #Les data correspondent au corps de la requête HTTP
  data:
    - account_type: 4

#Déclaration des stage
stages:
  - my_flow_job_1: #name random
      #Name du job (/src/jobs)    
      job: flow/created/mon_job_1
      #Defaut 1
      priority: 1
      #Job sous cron
      repeat:
        cron: "*/5 * * * * *"
      #Data inclut avec le job
      data:
        - my_workflow_data: 23
      #Nouveau stage en cas de job success
      on_success:
        job: job_success
        # [...] reprend les mêmes options qu'un stage
      #Nouveau stage en cas de fail
      on_fail:
        job: job_fail
        # [...] reprend les mêmes options qu'un stage

About

Workflow manager for launch multiple jobs with Bull.js

Resources

Stars

Watchers

Forks

Packages

No packages published