dpgaspar opened a new pull request #13911:
URL: https://github.com/apache/superset/pull/13911


   ### SUMMARY
   Fixes logic for working timeout, adds a Celery Soft time out and an Hard 
time out associated with the working timeout.
   
   Note: Killing the task does not guarantee the query is canceled on the 
analytics DB
   
   ```
   [2021-04-01 12:29:23,298: INFO/MainProcess] Received task: 
reports.scheduler[1c635a18-091d-4c9a-b15f-7445e5e28e2d]
   [2021-04-01 12:29:43,715: WARNING/MainProcess] Soft time limit (101s) 
exceeded for reports.execute[6f8adb2d-0395-4009-b8bd-fcb219315960]
   [2021-04-01 12:29:52,720: ERROR/MainProcess] Task handler raised error: 
TimeLimitExceeded(110)
   Traceback (most recent call last):
     File 
"/Users/daniel/workarea/preset/preset_fork_superset/venv3/lib/python3.7/site-packages/billiard/pool.py",
 line 684, in on_hard_timeout
       raise TimeLimitExceeded(job._timeout)
   billiard.exceptions.TimeLimitExceeded: TimeLimitExceeded(110,)
   [2021-04-01 12:29:52,720: ERROR/MainProcess] Hard time limit (110s) exceeded 
for reports.execute[6f8adb2d-0395-4009-b8bd-fcb219315960]
   [2021-04-01 12:29:52,905: INFO/MainProcess] Received task: 
reports.scheduler[cfc7d8fb-ca4e-42f4-b1db-821fa170e806]
   [2021-04-01 12:29:55,241: ERROR/MainProcess] Process 'ForkPoolWorker-9' 
pid:8042 exited with 'signal 9 (SIGKILL)'
   ```
   
   ### ADDITIONAL INFORMATION
   - [ ] Has associated issue:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in 
[SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] Migration is atomic, supports rollback & is backwards-compatible
     - [ ] Confirm DB migration upgrade and downgrade tested
     - [ ] Runtime estimates and downtime expectations provided
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to