Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add job for marking stalled entity imports as stalled #833

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

m90
Copy link
Contributor

@m90 m90 commented Jul 8, 2024

Ticket https://phabricator.wikimedia.org/T368021

This should have been included in #823 but wasn't.

If the Kubernetes jobs from #830 fail to signal back failure or success back to API for whatever, we should auto-sweep pending jobs as failed so people can at least try another import.

@m90 m90 merged commit 6c7424b into feature/data-reuse-tool Jul 8, 2024
5 checks passed
@m90 m90 deleted the fr/import-cleanup branch July 8, 2024 12:04
m90 added a commit that referenced this pull request Jul 30, 2024
* Add API endpoints for handling entity imports (#823)

* feat: scaffold model for storing data about transferbot runs

* feat: scaffold controller logic

* fix: wiki access needs to be scoped down to users

* fix: use consistent plural form for table name

* feat: dispatch mock job on creation

* test: scaffold test setup

* test: cover further functionality

* fix: use proper controller reference

* fix: store entire data

* fix: only update pending imports

* chore: import is not used

* chore: rename dummy job

* feat: add input validation

* refactor: handle enum validation through laravel features

* feat: add job for marking stalled entity imports as stalled (#833)

* feat: tighten validation on entity parameters (#838)

* Run `transferbot` in a Kubernetes Job (#830)

* feat: scaffold entity import job

* feat: fetch credentials from mediawiki

* feat: scaffold control flow for supervising job

* feat: add parameterized spec

* chore: connect proper job to http layer

* fix: adjust kubernetes job spec to pass

* feat: add callback handling

* refactor: move enum to dedicated file

* fix: adjust oauth grants so they work with platform user

* fix: tighten validation for domain parameter

* test: add test case for import job

* chore: change job configuration values

* chore: lock transferbot image version

* refactor: address review feedback

* chore: bump transferbot image version

* docs: add CHANGELOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants