Commit Graph

35 Commits

Author SHA1 Message Date
Dawid Wysokiński 7a67a9c048 add a new directory - cmd 2021-07-11 10:56:44 +02:00
Dawid Wysokiński 5e1041503c change queue initialization in main.go 2021-07-11 09:25:12 +02:00
Dawid Wysokiński 4154d6c133 rename one of the directories (internal -> pkg) 2021-07-11 07:43:44 +02:00
Dawid Wysokiński 2ba7adcd20 correct errors / logged messages 2021-05-14 14:57:05 +02:00
Dawid Wysokiński 818ee39bd7 remove one field from internal/cron.Config (Opts) 2021-05-14 14:07:30 +02:00
Dawid Wysokiński 19b3c28ff9 change the message after running cron 2021-05-06 14:45:34 +02:00
Dawid Wysokiński 34b0ef9949 rename one of the packages - db -> postgres 2021-05-03 16:35:24 +02:00
Dawid Wysokiński cb56b313ee correct imports 2021-05-03 16:33:12 +02:00
Dawid Wysokiński cb6e110e39 move most of the code to the 'internal' directory 2021-05-01 07:24:02 +02:00
Dawid Wysokiński d6a79d63fc don't inform about establishing the db connection 2021-04-28 19:51:48 +02:00
Dawid Wysokiński add1379e0b make messages more clear, fix most of the unhandled error 2021-04-27 20:06:38 +02:00
Dawid Wysokiński e29807e077 move task registration/queue creation logic to the cron package 2021-04-27 18:30:12 +02:00
Dawid Wysokiński 35045af75f refactor, update README.md, move queue.Config to the separate file 2021-04-25 20:24:26 +02:00
Dawid Wysokiński 8f093978bd add taskUpdateServerHistory 2021-04-25 19:58:33 +02:00
Dawid Wysokiński 30355785bc don't wrap cron functions into utils.TrackExecutionTime 2021-04-25 18:37:55 +02:00
Dawid Wysokiński cdd8c9b03f add taskLodVersions 2021-04-25 17:21:32 +02:00
Dawid Wysokiński dea3d4616a huge refactor 2021-04-25 17:02:58 +02:00
Dawid Wysokiński ff38936d1e bump github.com/tribalwarshelp/shared, update .gitignore and logrus setup 2021-04-23 21:20:01 +02:00
Dawid Wysokiński a4da69e085 - update github.com/tribalwarshelp/shared
- add a new worker - updateServerEnnoblementsWorker
- delete the updateServerDataWorker.loadEnnoblements method
2021-01-15 18:25:13 +01:00
Dawid Wysokiński 0e119a6c66 bump github.com/tribalwarshelp/shared and go-pg 2021-01-06 17:40:58 +01:00
Dawid Wysokiński 10f735075c BREAKING CHANGE - run updateStats and updateHistory separately for each version 2020-12-30 23:57:23 +01:00
Dawid Wysokiński 9d0bd7831d make running cron jobs on startup optional 2020-12-23 17:52:04 +01:00
Dawid Wysokiński 31ba00a004 remove unnecessary import 2020-12-22 18:21:52 +01:00
Dawid Wysokiński 0bc1cdbd94 make db pool size configurable 2020-12-22 18:20:30 +01:00
Dawid Wysokiński 1ef0ee381f log system improved, performance improvements 2020-11-18 12:54:19 +01:00
Dawid Wysokiński ad8cdc6926 delete readme.md, add the option to download data for more than one server at the same time 2020-11-18 12:54:19 +01:00
Dawid Wysokiński 692de15a51 remove allservers cache 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 5ab238139b cron should cache all servers for api middleware 2020-11-18 12:53:32 +01:00
Dawid Wysokiński 9b8488e64f optimization 2020-11-18 12:53:32 +01:00
Dawid Wysokiński d90c603aa9 rename package to github.com/tribalwarshelp/cron | change number of updating servers concurrently 2020-11-18 12:51:57 +01:00
Dawid Wysokiński 803dc9b9c2 bump github.com/tribalwarshelp/shared 2020-06-02 17:47:36 +02:00
Dawid Wysokiński 1203c574dd fix concurrency bug 2020-06-02 12:09:32 +02:00
Dawid Wysokiński 9041745d61 move models and mode package to other repo 2020-06-02 08:26:51 +02:00
Dawid Wysokiński a3bee20f24 rename package 2020-06-02 08:02:04 +02:00
Dawid Wysokiński 75e75a43cb init 2020-06-01 21:05:33 +02:00