Harden background job handling
@ragulka ci sta già lavorando.
Dal 18/4/2017.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
In our utilities classes, we commonly run into a couple issues:
- Object caching overrides that improperly handle options (don't purge cache when an option is updated, so job progress is incorrect) -- this can cause duplicated rows in the export file, or extend the time for processing an import.
- Hosts that block or rate-limit POST requests to the admin-ajax endpoint. This will cause the job to remain queued, as the
maybe_handle()method in the async request class doesn't fire right away or at all.
To resolve these, we should:
- Use direct SQL queries for setting / getting job status because some hosts don't properly clear the option cache when requested. This will bypass caching.
- Investigate alternatives for dispatching a job to move it to processing that don't involve a POST request to the admin-ajax endpoint.
- With ZD 544840, it turned out the server couldn't find its own hostname, so wp remote post using cURL couldn't look up its own DNS and therefore execute that request. We could do some lower level checks to try to ensure the hostname is known, as there have been a couple instances that were similar that I think the same misconfiguration could have been happening.
Related issues
- https://github.com/skyverge/wc-plugins/issues/1758
- https://github.com/skyverge/wc-plugins/issues/1726
- (CSV Import will need an issue for this too)
Related threads
- Lingua principale
- PHP
- Stelle
- 146
- Fork
- 43
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di godaddy-wordpress/wc-plugin-framework
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
godaddy-wordpress/wc-plugin-framework#806 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Google Pay Missing Environment VariableForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaGoogle Pay JavaScript
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
i18n Needs Reporter Feedabck
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
godaddy-wordpress/wc-plugin-framework#536 · 1 commento ·
Tutte le issue di godaddy-wordpress/wc-plugin-framework
Issue simili
-
sync-en
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Source item status is not saved when stock is deducted on shipment (stays "In Stock" at qty 0)ApertaIssue: ready for confirmation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
coollabsio/coolify#12274 ·
I maintainer di solito rispondono entro 1 giorno
-
[Type] Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 4 giorni
-
0.kind: enhancement 9.needs: package (update)
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
NixOS/nixpkgs#577156 · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno