Skip to content

limit maximum number of tasks in whenever gem rails #600

@wonderer007

Description

@wonderer007

How can i limit maximum number of tasks in whenever. For example if i have something like this

every 1.hours do
runner "MyModel.some_process"
rake "my:rake:task"
command "/usr/bin/my_great_command"
end

I want to limit it to 1 means if there is a thread already running do not start new thread at next hour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions