Commit graph

15 commits

Author SHA1 Message Date
fd92b25190
Make queues configurable 2023-03-11 16:38:32 +01:00
aac0b44c7f
Make possible to provide app state to tasks 2023-03-10 23:41:34 +01:00
c1fcc87885
Revamp project using newtype and rework tasks table 2023-03-07 16:41:20 +01:00
Ayrat Badykov
7c0aa2fab9
Retries (#92)
* add retries and errors fields

* Exponential backoff

* async retries (#93)
2022-09-17 19:39:47 +03:00
Pmarquez
dffee33b9c
Asynk change schema (#75)
* add uniq method for AsyncRunnable trait (#70)

* add uniq method for asyncrunnable

* add hash enum

* remove string

* return bool values

* Task struct modified (#71)

* Task struct modified

* asynk module try to adapt new scheme

* delete period in millis

* delete period in millis completed

* Cron support :D

* Cron and single Schedule support :D

* Current timestamp value

* fix bug and new test that confirms that it was a bug

* fix a call

* Update Cargo.toml

Co-authored-by: Ayrat Badykov <ayratin555@gmail.com>

* comments suggestions

* fix clippy

* Better user api for schedule with cron

* Cron tested with example

* Comments adressed

* Comments adressed

Co-authored-by: Ayrat Badykov <ayratin555@gmail.com>

Co-authored-by: Ayrat Badykov <ayratin555@gmail.com>
2022-08-27 15:58:38 +00:00
Ayrat Badykov
fc935f487e
add rollback query 2022-08-20 18:54:19 +03:00
Ayrat Badykov
c24b92e349
change schema 2022-08-20 18:52:33 +03:00
Pmarquez
1dc513c4a7
Sleep with Duration (#67)
* Sleep in millis

* SleepParams Duration :D

* Readme updated!

* Changing Schedule and SleepParams to std::time::Duration

* Millis period in Periodic tasks

* Readme!

* Error management

* period_in_millis i64

* fix clippy
2022-08-18 14:39:10 +03:00
Ayrat Badykov
7d92fd2d6a
Update Readme (#7)
* Update Readme

* change migration path in the readme
2021-07-24 12:13:59 +03:00
Ayrat Badykov
45eb336b8a
Periodic tasks (#5)
* Periodic tasks

* schedule next execution

* add scheduler

* ignore test

* fix clippy

* make start public

* check if the period task already exists

* do not insert task if it's already in the queue

* fix tests
2021-07-18 22:09:30 +03:00
Ayrat Badykov
4b1f537d19
execute different types of tasks in separate workers (#1)
* execute different types of task in separate workers

* add more tests

* pass reference

* add CHANGELOG
2021-07-03 07:23:05 +03:00
Ayrat Badykov
d293e31ac8
run tasks in threads 2021-06-23 13:48:03 +03:00
Ayrat Badykov
27f3e1479f
lock the selected task record 2021-06-12 15:59:09 +03:00
Ayrat Badykov
506fd1c4cb
insert tasks 2021-06-06 11:44:46 +03:00
Ayrat Badykov
8f1f1cc7fa
start working on storage level 2021-06-05 14:39:19 +03:00