$smwg­Enabled­Http­Deferred­Job­Request

From Linux Web Expert

Revision as of 10:04, 6 February 2019 by >Kghbln (chg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Template:Interlanguagelink: en
Configuration parameter details:
Name $smwgEnabledHttpDeferredJobRequest
Description Sets whether selected jobs can be executed asynchronously to the initial transaction triggering the job
Default setting true
(Other) available settings
false

Allows to change updates to be done with the initial transaction and parked as jobs, waiting on job scheduler to initiate the update

SMW_HTTP_DEFERRED_SYNC_JOB

Allows to change updates to be done synchronously with the update transaction, i.e. jobs are executed immediately

SMW_HTTP_DEFERRED_LAZY_JOB

Allows to change updates to be buffered, i.e. job are executed after MediaWiki has done all its transactions

Software Semantic MediaWiki
Since version
Until version
Configuration Installation
Keyword query · performance


__NOBREADCRUMBLINKS__

File:DeferredRequestDispatchManager.png
Sketch detailing the technical process involving the "Deferred­Request­Dispatch­Manager"

$smwgEnabledHttpDeferredJobRequest is a configuration parameter to control the behaviour of "DeferredRequestDispatchManager" to manage and execute selected jobs asynchronously, i.e. in a deferred processing mode to the initial transaction triggering the job. If enabled which is the default setting for this configuration parameter those jobs are send as request to a dispatcher in order for them to be decoupled from the initial transaction. The configuration parameter was introduced in Semantic MediaWiki 2.3.0Released on an unknown date unknown versions of MediaWiki1 and removed with Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki to be replaced by an software internal approach.2

Semantic MediaWiki 2.5.0Released on an unknown date unknown versions of MediaWiki added the SMW_HTTP_DEFERRED_SYNC_JOB option to this configuration parameter to control updates to be executed synchronously to a change propagation transaction.3 This option helps to mitigate a situation where for some reason the "DeferredRequestDispatchManager" is unable to complete the request and waiting on the job scheduler is not a choice.4

Semantic MediaWiki 2.5.1Released on an unknown date unknown versions of MediaWiki added the SMW_HTTP_DEFERRED_LAZY_JOB option to this configuration parameter to buffer updates to be executed after MediaWiki has done all its transactions.5. This option helps to mitigate a situation where for some reason the "DeferredRequestDispatchManager" lets users seeing the enqueue latency in case several calls are mode on the same queue.

This setting only takes effect if the embedded query update feature was enabled.

Default setting

$smwgEnabledHttpDeferredJobRequest = true;

Changing the default setting

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Change updates to be done synchronously with the update transaction (jobs are executed immediately)
$smwgEnabledHttpDeferredJobRequest = SMW_HTTP_DEFERRED_SYNC_JOB;
Change updates to be done synchronously with the update transaction (jobs are batched and executed later on idle)
$smwgEnabledHttpDeferredJobRequest = SMW_HTTP_DEFERRED_LAZY_JOB;
Change updates to be done with the initial transaction and parked as jobs, waiting on job scheduler to initiate the update
$smwgEnabledHttpDeferredJobRequest = false;

See also

#scite could not render a citation text for reference "gh:smw:1169" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2283" because type "issue" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2285" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:2356" because type "pullrequest" was not assigned to a template.
#scite could not render a citation text for reference "gh:smw:3310" because type "pullrequest" was not assigned to a template.

References

  1. ^ gh:smw:1169 
  2. ^ gh:smw:3310 
  3. ^ gh:smw:2285 
  4. ^ gh:smw:2283 
  5. ^ gh:smw:2356