Commit graph

57 commits

Author SHA1 Message Date
dettlaff 567f094336 fix: frem review 2024-02-08 18:40:12 +04:00
dettlaff 29596a4f47 docs: changed the description of the error class 2024-02-05 13:46:38 +04:00
dettlaff eb1bc9d730 fix: from review 2024-02-03 23:10:01 +04:00
dettlaff d923b04aef Merge branch 'master' into def/nix-collect-garbage-endpoint 2024-01-23 21:01:08 +04:00
dettlaff bb1e1bcae0 fix: rename functions 2024-01-17 19:26:10 +04:00
dettlaff 372eadd306 tests: fix test_parse_line 2023-11-29 13:02:59 +04:00
dettlaff 03e6d45279 fix: final typos fix 2023-11-15 16:47:04 +04:00
dettlaff 3be5816f51 fix: del unused return from parse line 2023-11-12 01:38:31 +04:00
dettlaff d31ad487eb fix: corrected from comment from pr 2023-11-12 01:16:04 +04:00
Houkime b545a400c3 doc(jobs): document that we are tz-naive when storing jobs 2023-11-10 11:47:48 +00:00
dettlaff c0f8b9026b fix: corrected from comment from pr 2023-10-16 20:39:58 +04:00
dettlaff 98eef8d08e fix: tests, jobs.error return 2023-10-12 02:40:47 +04:00
dettlaff 70a498d0e5 fix: missclick with Job jobs 2023-10-12 02:26:27 +04:00
dettlaff f2ead0c77d fix: typos 2023-10-12 02:18:29 +04:00
dettlaff 3fbc93c998 tests: fix rename 2023-10-12 02:09:13 +04:00
dettlaff 5c42d7a907 refactor: problems from pr 2023-10-12 02:01:31 +04:00
Houkime 0912ac1831 feature(jobs): set ttl via method 2023-10-10 20:25:14 +03:00
dettlaff 446220a9c5 fix: replace os to subprocess 2023-08-07 17:38:44 +04:00
dettlaff be8d249a04 fix: do a redis reset() 2023-08-07 16:41:42 +04:00
Houkime d664fcbdc4 refactor(jobs):track 100-on-finished as a progress update 2023-07-21 13:06:18 +00:00
Inex Code 0245d629fd refactor(backups): linting 2023-07-20 18:24:26 +03:00
Houkime cd2e9d3ba3 fix(jobs): make finishing the job set progress to 100 2023-06-28 13:22:53 +00:00
dettlaff 19005158a8 fix: add timewait 2023-06-26 23:33:41 +04:00
dettlaff 993ea93ee4 fix: delete old gen 2023-06-21 10:52:31 +04:00
dettlaff 3d4caaf4ce fix: encoding 2023-06-20 23:25:54 +04:00
dettlaff 79ef4c9310 fix: task registry 2023-06-20 01:25:04 +04:00
dettlaff 83cf7cbd6f fix: jobs 2023-06-18 08:37:27 +04:00
dettlaff d6c4d458f7 tests: fix some tests 2023-06-16 08:08:36 +04:00
dettlaff 28701e1608 fix: do a redis reset() 2023-06-16 08:08:36 +04:00
dettlaff 96c013c4e7 refactor: delete purest of nix_collect_garbage() 2023-06-16 08:08:36 +04:00
ВашÐdettlaff 03b5a6b5e4 fix: percentage 2023-06-16 08:08:36 +04:00
def af0129bdfe fix: types, add tests 2023-06-16 04:06:49 +00:00
def 7553202a69 test: fix nix collect garbage, add tests 2023-06-16 04:06:49 +00:00
def 7e3adffb68 refactor: nix-collect-garbage is now pure 2023-06-16 04:06:49 +00:00
def f42594f1fb refactor: delete unnecessary import 2023-06-16 04:06:49 +00:00
def 6ef9222e32 feat: loading percentage 2023-06-16 04:06:49 +00:00
def ba168fc92b fix: subprocess.check_output 2023-06-16 04:06:49 +00:00
def 57ec87bf43 feat: add nix-collect-garbage job 2023-06-16 04:06:49 +00:00
Houkime 03d4632465 refactor(backups): remove extraneous asserts from jobs 2023-05-17 20:27:42 +00:00
Houkime 60806cd536 feature(backups): job progress logs 2023-05-17 20:27:42 +00:00
Houkime ddd2176a5d refactor(backups): break out job logs status prefix 2023-05-17 20:27:42 +00:00
Houkime e25aa2cb33 test(backups): test that the job has run 2023-05-17 20:27:42 +00:00
Houkime 7ddfad10d4 refactor(backups): quick-expiration logs of jobs status updates 2023-05-17 20:27:42 +00:00
Inex Code cb403a94bd fix: typing 2022-12-30 21:06:16 +03:00
Houkime 063dfafc19 Jobs: fix return value of remove_by_uid
And add a test for said return value.
2022-11-30 17:06:43 +00:00
Houkime 5c86706f4b Jobs: fix value access in is_busy()
Also added a test for is_busy() that highlighted this bug.
2022-11-30 16:41:20 +00:00
Houkime 14c4ae26ab explicitly mark helper functions private
I thought about making them private class members, but that would get
unreadable and do more harm than good.
2022-11-30 16:22:46 +00:00
Houkime 106a083ca2 jobs: simplify reset
Also ups test coverage
2022-11-30 14:47:56 +00:00
Houkime d6ef01c0c7 Add TTL to storage of finished or failed jobs
Defaulting to 10 days.
2022-11-23 16:29:50 +00:00
Houkime 244851c7cc jobs: remove 'jobs' list, and use 'jobs:' prefix
Less complexity, easier to add redis-native TTL
2022-11-23 15:04:39 +00:00