Project

General

Profile

Actions

Bug #25109

closed

Running a `sync_task` while the tasks service gets restarted might lead to passenger process hanging forever

Added by Ivan Necas about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1635540

1. trigger an action that involves `sync_task` (I've used "curl X POST -k -u admin:changeme -H 'Content-Type: application/json' -d '{"name":"product'$RANDOM'","organization_id":"1"}' https://localhost/katello/api/v2/products", but e.g. host add_subscriptions uses `sync_task` ask well inside.
2. force-kill the dynflow_executor process while the task is running
3. restart foreman-tasks service
4. resume the task that got paused during the restart

Even though the task finished after resuming in point (4), the original web request did not get finished (the curl hangs, passenger-status --show=requests shows the request in the queue


Related issues 1 (0 open1 closed)

Related to foreman-tasks - Bug #25268: sync_task that results in paused/error throws a timeout exceptionClosedJustin SherrillActions
Actions

Also available in: Atom PDF