Sha256: 53b2e0fbb6c5647dd67ba51284a552220b5f8d440688692da2fcd5e1ff7dd4a1

Contents?: true

Size: 1.91 KB

Versions: 44

Compression:

Stored size: 1.91 KB

Contents

# https://www.websequencediagrams.com
title Taskinator Sequence

User->+Web: Request process
Web-->+Process(seq): Create sequential process
Process(seq)-->-Web:
Web-->+Queue: Enqueue process
Queue-->-Web:
Web-->-User:

opt Sequential process
  Queue->+Worker: Dequeue process
  note right of Worker: Start sequential process
  Worker->+Queue: Enqueue task
  Queue-->-Worker:
  Worker-->-Queue:

  loop Sequential Tasks
    Queue->+Worker: Dequeue task
    note right of Worker: Start task
    Worker->+Queue: Enqueue task
    Queue-->-Worker:
    Worker->Process(seq): Task completed
    note left of Process(seq): All tasks complete?
    Worker-->-Queue:
  end

  opt Sub Process Task
    Queue->+Worker: Dequeue task
    note right of Worker: Start task
    Worker-->+Process(con): Create concurrent process
    Process(con)-->-Worker:
    Worker-->+Queue: Enqueue process
    Queue-->-Worker:
    Worker->Process(seq): Task completed
    note left of Process(seq): All tasks complete?
    Worker-->-Queue:
  end

  opt Concurrent process
    Queue->+Worker: Dequeue process
    note right of Worker: Start concurrent process
    Worker->+Queue: Enqueue task
    Queue-->-Worker:
    Worker->+Queue: Enqueue task
    Queue-->-Worker:
    Worker->Process(seq): Task completed
    note left of Process(seq): All tasks complete?
    Worker-->-Queue:

    opt Concurrent Tasks
      Queue->+Worker: Dequeue task
      Queue->+Worker: Dequeue task
      Queue->+Worker: Dequeue task
      Worker->Process(con): Task completed
      note right of Process(con): All tasks complete?
      Worker->Process(con): Task completed
      note right of Process(con): All tasks complete?
      Worker-->-Queue:
      Worker-->-Queue:
      Worker->Process(con): Task completed
      Worker-->-Queue:
    end

    note right of Process(con): All tasks complete?
    Process(con)->Process(seq): Process completed
    note left of Process(seq): All tasks complete?

  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
taskinator-0.0.4 sequence.txt
taskinator-0.0.3 sequence.txt
taskinator-0.0.2 sequence.txt
taskinator-0.0.1 sequence.txt