Feature/queueable print#1070
Merged
Merged
Conversation
…ueueable container param is trueish
…cessful job submission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Optionally diverts print jobs into a database table to be picked up and executed by a console command.
This decouples job execution from the request context, and thus enables strictly serialized execution of demanding jobs with high resource limits without the risk of resource spikes.
This requires a bit of outside configuration which may be hard to accomplish depending on the OS, web server configuration and other platform factors. Web server and CLI will compete for cache regeneration and will have to share files, so they absolutely must be configured to run as compatible users.
Because we cannot assume clean user and system configuration, the queued printing behaviour is actually completely dormant unless the new
mapbender.print.queueableparameter is set totrue.After enabling the global parameter, PrintClient Element backend forms gain a new
renderModedropdown ("direct" or "queued"; "direct" remains the default). I.e. you can still have direct-mode PrintClients. You can switch on an Application basis as appropriate, and you can even have direct-mode and queued-mode PrintClient Elements side by side in the same Application if you want.For any jobs to get executed the
mapbender:print:queue:nextCLI must be run in one of three potential approaches:Here are the options to run jobs (any number of them) for a whole day minus five minutes before process exit:
Two additional container parameters are introduced: