-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🎸 use the new DatasetState.backfill() method to backfill
Also: remove the "upgrade" action, since it's handled by backfill. Also: remove test for backfill action, because it's not clear how it would work (maybe -> e2e test)
- Loading branch information
Showing
10 changed files
with
137 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Datasets server maintenance job | ||
|
||
> Job to run maintenance actions on the datasets-server | ||
Available actions: | ||
|
||
- `backfill`: backfill the cache (i.e. create jobs to add the missing entries or update the outdated entries) | ||
- `metrics`: compute and store the cache and queue metrics | ||
- `skip`: do nothing | ||
|
||
## Configuration | ||
|
||
The script can be configured using environment variables. They are grouped by scope. | ||
|
||
### Actions | ||
|
||
Set environment variables to configure the job (`DATABASE_MIGRATIONS_` prefix): | ||
|
||
- `CACHE_MAINTENANCE_ACTION`: the action to launch, among `backfill`, `metrics`, `skip`. Defaults to `skip`. | ||
|
||
### Common | ||
|
||
See [../../libs/libcommon/README.md](../../libs/libcommon/README.md) for more information about the common configuration. | ||
|
||
## Launch | ||
|
||
```shell | ||
make run | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.