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 #1

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
Actions #2

Updated by Ivan Necas about 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

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
Actions #4

Updated by Ivan Necas about 6 years ago

  • Related to Bug #25268: sync_task that results in paused/error throws a timeout exception added
Actions

Also available in: Atom PDF