Skip to content

Conversation

@JanisSaldabols
Copy link
Collaborator

No description provided.

located_suppliers JSONB NOT NULL
);

CREATE OR REPLACE FUNCTION archive_ill_transaction_by_date_and_status(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JanisSaldabols are there any provisions here to prevent starting two archive functions at the same time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point
Added DB lock

@jakub-id
Copy link
Contributor

@adamdickmeiss I'm wondering if API endpoint is the best interface for this given that HTTP is just not great for modelling async stuff. Initially, I discussed with Janis making a separate binary for this so we can launch it as a Kubernetes CronJob. The really nice thing about this approach is that devops have 100% visibility into it. Thoughts?

@adamdickmeiss adamdickmeiss requested a review from jakub-id August 27, 2025 09:50
@adamdickmeiss adamdickmeiss merged commit e2fbbb6 into main Aug 27, 2025
4 checks passed
@adamdickmeiss adamdickmeiss deleted the CROSSLINK-119 branch August 27, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants