You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/03/11 07:44:50 UTC

[GitHub] [cloudstack] 0maki0 opened a new issue #4792: Is it a specification that completed jobs cannot be acquired by "listAsyncjobs"?

0maki0 opened a new issue #4792:
URL: https://github.com/apache/cloudstack/issues/4792


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and master branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Other
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API(listAsyncjobs)
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   CloudStack 4.14.0.0
   ~~~
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   I have a question about “listAsyncjobs”.
   
   1. Is it a CloudStack specification that completed jobs cannot be acquired with the listAsyncjobs command?
    ・If startdate is specified, is “listAsyncjobs” returning asynchronous jobs remaining after the specified time?
    ・Is it correct to have “removed is NULL” in the SQL condition?
   
   ```
   SELECT async_job_view.id, async_job_view.uuid, async_job_view.account_id, async_job_view.account_uuid, async_job_view.account_name,
    async_job_view.account_type, async_job_view.domain_id, async_job_view.domain_uuid, async_job_view.domain_name, async_job_view.domain_path, async_job_view.user_id, async_job_view.
   user_uuid, async_job_view.job_cmd, async_job_view.job_status, async_job_view.job_process_status, async_job_view.job_result_code, async_job_view.job_result, async_job_view.created,
    async_job_view.removed, async_job_view.instance_type, async_job_view.instance_id, async_job_view.instance_uuid FROM async_job_view WHERE async_job_view.account_id=2 AND async_job
   _view.account_type != 5  AND async_job_view.created >= '2021-03-11 01:00:00'  AND async_job_view.removed IS NULL  ORDER BY async_job_view.id ASC  LIMIT 0, 500
   
   ```
   
   2. Is there a way to get a completed job?
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd closed issue #4792: Is it a specification that completed jobs cannot be acquired by "listAsyncjobs"?

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #4792:
URL: https://github.com/apache/cloudstack/issues/4792


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #4792: Is it a specification that completed jobs cannot be acquired by "listAsyncjobs"?

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #4792:
URL: https://github.com/apache/cloudstack/issues/4792#issuecomment-796565378


   Yes, we don't return resources/objects that are marked with a removed date in the DB (this is usually for all list APIs). There's no way to get completed jobs with this API, however, you can use `queryAsyncJobResult` get the result of a completed job if you know the job ID.
   
   Pl use the users mailing list to ask questions: http://cloudstack.apache.org/mailing-lists.html
   
   Thanks.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org