#6270 Task hangs if invalid params to a paster command

v1.0.0
closed
nobody
42cc (432)
General
2015-08-20
2013-05-22
No

If you submit a paster command through the task manager at /nf/admin/task_manager/new but you specify invalid parameters, it will print the error message to stdout (which gets logged) and then it stops, but the task is always in state 'busy' and never marked as failure. I'm guessing the standard help handler is calling sys.exit or something like that. Maybe we should avoid that and run the commands through the arg parser, before we run run. An exception can be raised so that the task ends up in state 'error' and with the exception trace in the result.

Related

Tickets: #6270

Discussion

  • Igor Bondarenko - 2013-05-23
    • status: open --> in-progress
     
  • Igor Bondarenko - 2013-05-23

    Created #359: [#6270] Task hangs if invalid params to a paster command (1cp)

     

    Related

    Tickets: #6270

  • Igor Bondarenko - 2013-05-24
    • status: in-progress --> code-review
     
  • Igor Bondarenko - 2013-05-24

    Closed #359. je/42cc_6270

     
    • QA: Tim Van Steenburgh
    • Milestone: forge-backlog --> forge-may-31
     
    • status: code-review --> closed
     

Log in to post a comment.