Skip to content

Problem: API task trigger ignores host limit since 2.13.0 #3029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
BenGig opened this issue May 14, 2025 · 0 comments
Open

Problem: API task trigger ignores host limit since 2.13.0 #3029

BenGig opened this issue May 14, 2025 · 0 comments
Assignees
Labels

Comments

@BenGig
Copy link

BenGig commented May 14, 2025

Issue

The API call to start a tasks can be limited to hosts/groups:

curl -q -H 'Content-Type: application/json' -H "Authorization: Bearer <TOKEN>=" -d '{"template_id"
: 82, "limit": "eduit-ansible-test-02"}' https://semaphore.ethz.ch/api/project/8/tasks

This worked fine in 2.12.17. After the upgrade to 2.14.9, Semaphore ignores the limit argument. Instead, the task is applied to all entries in the inventory.

I found the bug already exists since 2.13.0

Impact

Web-Backend (APIs)

Installation method

Package

Database

MySQL

Browser

No response

Semaphore Version

2.14.9-66611eb-1746446916 (bug introduced in 2.13.0)

Ansible Version

Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

@BenGig BenGig changed the title Problem: API task trigger ignores host limit Problem: API task trigger ignores host limit since 2.13.0 May 14, 2025
@fiftin fiftin self-assigned this May 14, 2025
@fiftin fiftin added the api label May 14, 2025
@fiftin fiftin added this to Bugfixing May 14, 2025
@fiftin fiftin moved this to Todo in Bugfixing May 14, 2025
@fiftin fiftin moved this from Todo to In Progress in Bugfixing May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

2 participants