procrastinate-org / procrastinate

PostgreSQL-based Task Queue for Python
https://procrastinate.readthedocs.io/
MIT License
859 stars 53 forks source link

Allow to cache job status when checking abortion #1129

Closed medihack closed 2 months ago

medihack commented 3 months ago

Closes #1083

Successful PR Checklist:

PR label(s):

I am not fully convinced that setting a default cache time on the worker itself is a good idea - it's a bit too much intransparent magic for my taste. Users may have completely different ideas about how long such a cache period should be (depending on the duration of the task itself).

github-actions[bot] commented 3 months ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  procrastinate
  job_context.py
Project Total  

This report was generated by python-coverage-comment-action

medihack commented 2 months ago

I will add this feature later to 3.x.