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

CPDNPQ-1188 Create a task to update status fields in the NPQ #819

Merged
merged 28 commits into from
Jul 11, 2023

Conversation

javier-npq
Copy link
Contributor

@javier-npq javier-npq commented Jun 22, 2023

Context

Ticket: https://dfedigital.atlassian.net/browse/CPDNPQ-1188

ECF counterpart

PR: DFE-Digital/early-careers-framework#3561

Changes proposed in this pull request

  • have a rake job created which will periodically update the status field (lead_rovider_approval_status and participant declaration outcomes) in NPQ app and sync with any updates made in the ECF app.

@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch 2 times, most recently from 7be595f to 97a28c3 Compare June 23, 2023 09:27
@github-actions
Copy link

@javier-npq javier-npq changed the base branch from main to CPDNPQ-1086-user-account-page June 23, 2023 12:54
@javier-npq javier-npq changed the base branch from CPDNPQ-1086-user-account-page to main June 23, 2023 12:54
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch 8 times, most recently from 2f61c54 to 0a54b62 Compare June 28, 2023 21:57
@javier-npq javier-npq changed the title CPDNPQ-1188 Background Job to Update Status Fields CPDNPQ-1188 Create a task to update status fields in the NPQ Jun 30, 2023
@javier-npq javier-npq requested a review from slawosz as a code owner July 4, 2023 09:26
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch from 4dba6bb to 1a5a482 Compare July 6, 2023 16:31
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch from 9e0945a to 6a1901e Compare July 6, 2023 17:52
config/schedule.rb Outdated Show resolved Hide resolved
@BroiSatse
Copy link
Contributor

There's one potential issue with scalability here. If we enable cron on our docker, all the deployed instances will run cron in the background causing multiple execution of the same job. Also, running things in the background is a bit against of cloud architecture. In ideal world, we should have a single dedicated container responsible for running cron - this would also resolve issues with invisible cron logs.

@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch 3 times, most recently from f9fec2c to 9ab3815 Compare July 7, 2023 16:04
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch from 9ab3815 to 52f20db Compare July 7, 2023 16:14
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch from e0a2c29 to 09ca92c Compare July 10, 2023 10:21
@javier-npq javier-npq force-pushed the CPDNPQ-1188-background-job-to-update-status-fields branch from 8b560ac to 451b3e6 Compare July 10, 2023 13:24
@slawosz
Copy link
Contributor

slawosz commented Jul 10, 2023

Approved. It would be worth it to verify manually few days after deployment, if the applications are properly being updated.

@javier-npq javier-npq merged commit 0502bc6 into main Jul 11, 2023
@javier-npq javier-npq deleted the CPDNPQ-1188-background-job-to-update-status-fields branch July 11, 2023 18:25
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.

3 participants