Bug 26740 - REST API: Add endpoint for task queue
Summary: REST API: Add endpoint for task queue
Status: RESOLVED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on: 22417
Blocks:
  Show dependency treegraph
 
Reported: 2020-10-20 00:19 UTC by David Cook
Modified: 2023-12-10 22:41 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.