Bug #25109
closedRunning a `sync_task` while the tasks service gets restarted might lead to passenger process hanging forever
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
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Pull request https://github.com/theforeman/foreman-tasks/pull/368 added
Updated by Ivan Necas about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 2b479a426b718773d386655000bf2942c476e037.
Updated by Ivan Necas about 6 years ago
- Subject changed from Running a `sync_task` while the tasks service gets restarted might lead to passenger process hanging forever to Running a `sync_task` while the tasks service gets restarted might lead to passenger process hanging forever
- Fixed in Releases foreman-tasks-0.14.1 (Foreman 1.20) added
Updated by Ivan Necas about 6 years ago
- Related to Bug #25268: sync_task that results in paused/error throws a timeout exception added