Harden background job handling
@ragulka ya está trabajando en esto.
Desde el 18/4/2017.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 146
- Forks
- 43
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de godaddy-wordpress/wc-plugin-framework
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
godaddy-wordpress/wc-plugin-framework#806 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Google Pay Missing Environment VariablePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. AbiertoGoogle Pay JavaScript
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
-
i18n Needs Reporter Feedabck
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
godaddy-wordpress/wc-plugin-framework#536 · 1 comentario ·
Todos los issues de godaddy-wordpress/wc-plugin-framework
Issues similares
-
sync-en
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
coollabsio/coolify#12299 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Automattic/blocks-engine#3369 ·
Los mantenedores suelen responder en 1 día
-
Protect against "unlikely RCE"Abierto0. to triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 67/100
roundcube/roundcubemail-docker#478 ·
Los mantenedores suelen responder en 1 día
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día