You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2020/05/13 12:11:00 UTC

[jira] [Closed] (JAMES-3172) Cancel a task doesn't seem to really work

     [ https://issues.apache.org/jira/browse/JAMES-3172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed JAMES-3172.
---------------------------------
    Resolution: Fixed

https://github.com/linagora/james-project/pull/3361 fixed this

> Cancel a task doesn't seem to really work
> -----------------------------------------
>
>                 Key: JAMES-3172
>                 URL: https://issues.apache.org/jira/browse/JAMES-3172
>             Project: James Server
>          Issue Type: Bug
>            Reporter: René Cordier
>            Priority: Major
>
> Test done with a james-rabbitmq-project docker image (which I believe is using the Distributed Task Manager)
>  
> Launch a task a on provisionned James and try to cancel it, and keep looking at the logs in James...
>  
> For example, I ran the recompute current quota task :
> {code:java}
> curl -XPOST 'http://[JAMES_ADDRESS]/quota/users?task=RecomputeCurrentQuotas'
> {code}
>  
>  Then I cancel it
> {code:java}
> curl -XDELETE 'http://james-charge-01:8000/tasks/[TASK_NUMBER]
> {code}
> By checking the status of the task, I can see that the task has been cancelled... However, if I look at the logs on James at the same time, I could see INFO logs about quotas being still recomputed for users. 
> It looks like to me even if the task got cancelled with the task scheduler, it's still running somehow... Which should not happen



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org