Bug 26740

Summary: REST API: Add endpoint for task queue
Product: Koha Reporter: David Cook <dcook>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 22417    
Bug Blocks:    

Description David Cook 2020-10-20 00:19:43 UTC
It would be great if there were a HTTP API endpoint that we could use to enqueue tasks. 

That said, we would need to be careful with permissions, so it would probably need to be a different endpoint for each kind of task that could be enqueued.

My main thought here is to have a task scheduler daemon that adds tasks via the task queue endpoint when its timers fire, but it could be used in all sorts of ways. A frontend AJAX call could add a task and then either poll/have a refresh button to get updated information about that task.
Comment 1 Katrin Fischer 2023-12-09 14:10:56 UTC
Is this resolved?

https://api.koha-community.org/#tag/jobs
Comment 2 David Cook 2023-12-10 22:41:33 UTC
(In reply to Katrin Fischer from comment #1)
> Is this resolved?
> 
> https://api.koha-community.org/#tag/jobs

It looks like you can only get/list jobs. The search also looks like it could have some issues if used outside of the current context (ie the Admin module)...

I'm happy to close this one though as I don't think I'll work on it, and I'm not sure it's even a good idea.