The queue daemon is a service, from an OS-perspective. It has a restart command and everything! Perhaps we should consider making it a Hosting Service.

While right now this service would essentially only run on the master server, consider the utility of being able to run them on multiple servers. Seems like it'd be a step in the direction of #2037993: Make remote servers "smart". It would also facilitate making the queue pluggable.

Comments

ergonlogic created an issue. See original summary.

ergonlogic’s picture

I've begun to implement this in contrib, based on Skynet: https://github.com/ergonlogic/hosting_skynet/tree/service.

ergonlogic’s picture

Title: Make the queue a service » Make the task queue a service
ergonlogic’s picture

Technically, this'd be the queue runner that's being made into a service here. The task queue itself remains a custom database table, and related functions. It'd be nice to also move the queue itself into a service, as that would help to resolve: #1963808: Make the hosting queues pluggable, so something like Jenkins could run the commands instead of @hostmaster.

ergonlogic’s picture

helmo’s picture

Would a python bases queue runner be a separate sub class?

jon pugh’s picture