Skip to content

Batches are triggered multiple times #203

Closed
@Enchufa2

Description

@Enchufa2

Reprex:

library(simmer)

t <- trajectory() %>%
  batch(1) %>%
  batch(1) %>%
  batch(1) %>%
  timeout(1)

simmer(verbose=TRUE) %>%
  add_generator("dummy", t, at(0)) %>%
  run()
#>          0 |    source: dummy            |       new: dummy0           | 0
#>          0 |   arrival: dummy0           |  activity: Batch            | 1, 0, 0, 
#>          0 |   arrival: batch0           |  activity: Batch            | 1, 0, 0, 
#>          0 |   arrival: batch2           |  activity: Batch            | 1, 0, 0, 
#>          0 |   arrival: batch4           |  activity: Timeout          | 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions