Commit Graph

25 Commits

Author SHA1 Message Date
Simon 789c35e2b5
refactor RedisQueue to use sorted set 2023-12-17 11:22:26 +07:00
Simon 8870782a6e
refactor, use decode_responses in base class 2023-12-16 17:39:09 +07:00
Clark 4d111aff82
Move the startup application settings to a new class (#571)
* Move the startup application settings to a new class

* Replace settings methods with static fields

* Move Redis and ES configuration to the settings class

* Fix environment python imports

* Update envcheck to use the new settings
2023-10-28 10:27:03 +07:00
Simon 3803537739
trigger bgsave on importent redis set_message 2023-08-23 18:35:20 +07:00
simon ee4dbf99b3
add type hints 2023-03-31 13:15:30 +07:00
simon 860213c427
fix empty reply 2023-03-23 09:57:16 +07:00
simon 272972429b
handle hard task reset at startup 2023-03-23 09:49:06 +07:00
simon 6b7354b14f
refactor reindex task 2023-03-15 16:59:20 +07:00
simon 2d2431364d
handle get single not found 2023-03-08 13:27:37 +07:00
simon 16440a4170
add generic task command handler 2023-03-08 12:31:03 +07:00
simon 5617d1c7ae
sort by date and delete task results 2023-03-02 14:43:05 +07:00
simon 666074ed49
refactor download task, consolidate tasks 2023-03-02 14:17:03 +07:00
simon 6328e316f4
add task manager integration 2023-03-01 18:13:51 +07:00
simon 71dd63d3f0
[API] implement refresh GET and POST endpoints 2022-12-19 11:24:37 +07:00
simon 2753ce93a2
add contains to RedisQueue 2022-12-12 18:01:02 +07:00
simon 49b120ed2b
refactor RedisQueue to take a queue_name arg 2022-12-10 14:51:17 +07:00
simon baacd3ee39
better message for running and indexing queue 2022-10-23 12:21:27 +07:00
simon 2cf30e1127
refactor: default set_message in RedisArchivist to True 2022-06-16 10:37:46 +07:00
simon 09a94d0df5
set relative values directly with path arg 2022-06-15 10:27:29 +07:00
lamusmaser bbb16bb3c2
Update TaskAPIView with GET - #257 PR (#258)
* Initial commit for GET response for TaskAPIView.

* Update for missing space - linting issue.

* Additional linting fixes.

* add is_locked method to check if lock is set

* Update to use `.is_locked` method and add decorator.

* Fix linting issue.

* Fix doubled "rescan" call for locked file.
Removed call to ".owned()" under "is_locked".

* Commenting out GET call in TaskAPI view to revert change for testing.

* Commenting is_locked function to see if Server Response 500 is stopped.

* Reassert is_locked function within RedisArchivist class.

* Create test GET responder.

* Reverting simple GET response change.

* Reapplying simple GET response for `/api/task/`.

* Reapplying change with modification to lock key.

* Documentation update for new GET calls.

* README: fix returned value as `bool` instead of `str`.

* Updating the `is_locked` key reference to "rescan" and "downloading" to fix which key is being retrieved.

* Use dictionary keys, rather than line-by-line statements.

* Fix typo in README for Task View.

Co-authored-by: simon <simobilleter@gmail.com>
2022-06-15 09:15:59 +07:00
simon 0ac9243389
remove unused monitor_cache_dir method 2022-05-24 15:54:41 +07:00
simon 9f5c9b17a5
refactor redis connection, fix sync_redis_state task setup issue 2022-03-22 17:50:54 +07:00
simon c4d6bb35a3
add list_items for wildcard matching 2022-02-24 18:55:18 +07:00
simon 2fc0cbacf5
update doc strings to represent new module structure 2022-01-23 19:32:08 +07:00
simon 0fc0cc8e87
major refactor, split up modules 2022-01-22 22:13:37 +07:00