Skip to content

Feature request: ability to limit number of tasks per worker #676

Closed

Description

@hryamzik

Let's say you run tests with iOS simulator on OSX worker. Multiple simultaneously running task may conflict.

I'd model it as something more general though, i.e. have tasks marked with a uniqueness identifier and a max-in-flight-per-worker associated with it, rather than having a worker say it can only run one thing at a time © @vito.

Activity

  1. concourse-bot commented on Oct 3, 2016

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #131560385 Feature request: ability to limit number of tasks per worker

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. hryamzik commented on Oct 6, 2016

    @hryamzik
    Author

    That's also useful for resources to avoid multiple simultaneous puts at the same time.

  3. matt-royal commented on Oct 31, 2016

    @matt-royal

    This would be very helpful for my team. In our case, we need to ensure that a given worker is only running 1 instance of a specific task (since the task will fail if it has to compete for resources).

  4. oppegard commented on Jan 6, 2017

    @oppegard
    Contributor

    This would be useful for the Pivotal Tracker team to prevent overload of workers (assuming that Concourse would schedule jobs on workers with less container utilization).

  5. baszalmstra commented on Apr 18, 2017

    @baszalmstra

    This would be useful to run graphics heavy tests on a worker and not overload the worker with multiple tests.

  6. mervyn777 commented on Jun 27, 2017

    @mervyn777

    Any updates on this issue???

    I'm having the same problem when more than one job is running simultaneously on the Darwin worker, even if the jobs are in different pipelines triggered by their corresponding git commits. Other than the first one, that started using the worker resource, the rest of the jobs fail. We then need to halt all commits and then will have to be manually trigger one after the other to pass the jobs.

    Is there some workaround to this? This is a huge limitation and defeats the whole purpose of setting up concourse on darwin if the max number of jobs/tasks cannot be overridden and set to 1. :(

  7. clarafu commented on Jul 11, 2017

    @clarafu
    Contributor

    @mervyn777 Sorry, this issue is currently not prioritized so it might be a bit until it gets worked on. You might be able to use the pool-resource as a workaround to ensure that only one task is being run at a time.

  8. mervyn777 commented on Jul 18, 2017

    @mervyn777

    @clarafu : Thanks for that great resource! Solves my problem for the moment. Currently the workaround gets lock for a complete job but not tasks within job. Is it possible to get a lock for individual tasks within a job? So that no 2 similar tasks run in different pipelines but the jobs can run concurrently as long as they are running different tasks requiring different resources.

  9. msarahan commented on Sep 13, 2017

    @msarahan

    I recommend also adding a Windows label, but more broadly, this is a critical feature for any system where docker containers are not an option.

  10. leshik commented on Mar 11, 2018

    @leshik

    I'd like to have such an option, too – but unrelated to macOS. In my case, there are not very powerful VPS in the cloud that currently hosts ATC & TSA along with a worker, and also the much more powerful server in office as an external worker. Something like worker weight would be very helpful to schedule workload to office server more often than to the cloud one.

  11. ddadlani commented on Jun 25, 2019

    @ddadlani
    Contributor

    This is related to #2928, which is currently in progress.

  12. ddadlani commented on Jul 30, 2019

    @ddadlani
    Contributor

    Closing this since it has been implemented in #4118

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions