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

Reg\Transfer Entity\Cronjob to apply transfers on effective dates #2040

Open
andrea-williams opened this issue Aug 2, 2024 · 3 comments
Open
Labels

Comments

@andrea-williams
Copy link
Contributor

andrea-williams commented Aug 2, 2024

Describe the task

Blocked by: #2427

Create a cronjob that runs on a daily schedule in Openshift. It should then handle each event effective for the current date and make the appropriate changes in our database.

Acceptance Criteria

To implement this functionality, we need to follow the approach used in the cas_cif application:

  • Create a django admin command that calls process_due_transfer_events function

  • Define a CronJob (e.g., process-due-transfer-events) in a Helm chart template to encapsulate the task logic. We need to call the django command in this CronJob

  • Integrate the CronJob into an Airflow DAG within the appropriate DAG file.

For reference, a similar CronJob named insert-backup-test-timestamp is already implemented and utilized in the cas_cif_dags.py file. Following this pattern, we can schedule the new functionality to invoke the process_due_transfer_events function on a daily basis.

Additional context

  • Add any other context about the task here.
  • Or here
@patrickisaac
Copy link

Refinement Notes:

  • @Sepehr-Sobhani to further refine and have additional conversation with Pierre/Dylan

@Sepehr-Sobhani
Copy link
Contributor

Refinement Notes:

  • @Sepehr-Sobhani to further refine and have additional conversation with Pierre/Dylan

Refined!

@Sepehr-Sobhani
Copy link
Contributor

Hi @pbastia / @dleard !

Could you please review the AC for this ticket? I want to ensure everything is covered.

Thanks!

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

No branches or pull requests

3 participants