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

[PUBLISH] Push items directly to publish queue when possible. #2803

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

jerome-poisson
Copy link
Contributor

This patch add a publish:push command which directly put items to publish services queue without passing by the published collection.

SDESK-7448

This patch add a `publish:push` command which directly put items to
publish services queue without passing by the `published` collection.

SDESK-7448
@jerome-poisson
Copy link
Contributor Author

Note: This is currently a work in progress; I am not entirely sure how to handle the correct publishing workflow for this scenario. I will need to discuss it further with @MarkLark86 .

The new "Pushed" state is use when an item is pushed directly to
publishing services (without using `publish:enqueue`).

`enqueue_published.apply_async()` has been removed from
`BasePublishService.update`: Only scheduled items are not pushed within
this method; they will be published at a later date, so triggering
`enqueue_published` immediately is unnecessary.

Tests have been updated.

SDESK-7448
@jerome-poisson
Copy link
Contributor Author

@MarkLark86 I've updated this PR following our discussion today. I'm keeping the WIP label because I still want to do some tests with frontend, but you and others can review the PR already.

Thanks!

@MarkLark86
Copy link
Contributor

Note: This is currently a work in progress; I am not entirely sure how to handle the correct publishing workflow for this scenario. I will need to discuss it further with @MarkLark86 .

I wouldn't worry about publishing working at the moment, I think there's a few more kinks in the chain we need to fix before async publishing works.

@jerome-poisson jerome-poisson merged commit 0baf79d into superdesk:async Jan 20, 2025
8 of 17 checks passed
@jerome-poisson jerome-poisson deleted the SDESK-7448 branch January 20, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants