ZendHQ 2.4.0
New features
- Added PHP 8.5 support to the ZendHQ PHP extension.
- ZendHQ now has a UUID identifying the installation.
- The UUID is generated when the ZendHQ daemon is started for the first time and stored in the database. The UUID can be used to identify the ZendHQ installation in logs, monitoring, and other places.
- The UUID can be retrieved using the
session.system_uuidJsonRPC method.
- Added new Job Queue JsonRPC API methods:
jq.export_queueandjq.export_queuesJsonRPC methods can be used to export Job Queue queue definitions and job definitions to a JSON document.jq.import_queueandjq.import_queuesJsonRPC methods can be used to import Job Queue queue definitions and job definitions from a JSON document.jq.import_jobsJsonRPC method can be used to import Job Queue job definitions to an existing queue from a JSON document.jq.suspend_queuesandjq.activate_queuesJsonRPC methods can be used to suspend or activate all the Job Queue queues at once.jq.are_queues_suspendedJsonRPC method can be used to check if all the Job Queue queues are suspended.jq.test_cronJsonRPC method can be used to test a cron expression and get the next scheduled run times.
- Added new sub-commands to the
zendhqctl jobqueue queuecommand:zendhqctl jobqueue queue exportsub-command can be used to export Job Queue queue definitions and job definitions to a JSON file.zendhqctl jobqueue queue importsub-command can be used to import Job Queue queue definitions and job definitions from a JSON file.zendhqctl jobqueue job importsub-command can be used to import Job Queue job definitions to an existing queue from a JSON file.
- Added new functions to the Job Queue PHP API:
ZendHQ\\JobQueue\\HTTPJob::getQueryStringArguments()function can be used to get the query string arguments of an HTTP job as an associative array.
- Added support for multiple Open ID Connect (OIDC) providers.
- ZendHQ daemon now supports multiple OIDC providers that can be configured in the ZendHQ daemon's configuration file. OIDC provider configuration is now generic and can be configured to support any OIDC provider.
- Added
zendhqinfo()PHP function to the ZendHQ PHP extension.- The
zendhqinfo()function outputs information about the ZendHQ PHP extension, tries to ping the ZendHQ daemon and outputs the daemon connection status.
- The
- Added
zendhq.log_file_clidirective to the ZendHQ PHP extension's configuration file that can be used to set the log file path for PHP CLI SAPI. - If the directive is not set, then the
zendhq.log_filedirective is used.
Changes
- Modified
zendhqctl jobqueue queue suspend/activatesub-commands to support the--all-queuesflag that can be used to suspend or activate all the Job Queue queues at once. - Modified
zendhqctl jobqueue job historysub-command to support--time-from,--time-toand--dateflags that can be used to filter job history entries by completion time range. - Modified the
jq.get_job_historyJsonRPC method to support time_from andtime_tofilterparameters that can be used to filter job history entries by completion time range. - Modified the
oauth2.providersJsonRPC method to optionally return full provider information if the full parameter is set to true. - Modified
session.create,session.restoreandsession.idJsonRPC methods to return authenticated user information including the OIDC provider name if the user was authenticated using OIDC. - Improved reporting daemon connection and zeromq API version mismatch errors.
- Silenced daemon connection errors are now repeated in the ZendHQ PHP extension's log file when trying to do a Z-Ray request, Code Tracing request, or monitoring event reporting.
- Mismatching zeromq API version errors in the daemon's log file now include the offending PHP node's name.
Bug fixes
- New API and database schema versions
- ZendHQ daemon extension interface API version is now
20250812. - JsonRPC
sessionnamespace API version is now1.12. - JsonRPC
oauth2namespace API version is now1.1. - JsonRPC
jqnamespace API version is now1.3.
- ZendHQ daemon extension interface API version is now