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

Cannot publish a large channel #4111

Open
pcenov opened this issue Jun 6, 2023 · 9 comments
Open

Cannot publish a large channel #4111

pcenov opened this issue Jun 6, 2023 · 9 comments
Labels

Comments

@pcenov
Copy link
Member

pcenov commented Jun 6, 2023

Observed behavior

Observed while testing #4002 today - every time I attempt to publish a large channel (5K resources) at some point it seems to time out without any clear indication to the user. Sometimes both the Unpublished and Publish buttons are displayed simultaneously.

Expected behavior

The channel should be published successfully. In case there is a server timeout or any other type of error this should be communicated to the user as otherwise it's quite confusing.

Steps to reproduce the issue

  1. Go to https://hotfixes.studio.learningequality.org/en/accounts/#/ and sign in
  2. Create a brand new channel add import multiple folders and resources from a large channel such as CK-12
  3. Click the Publish button and wait

Additional information

Video:

2023-06-06_15-18-46.mp4

Usage Details

@pcenov
Copy link
Member Author

pcenov commented Jun 6, 2023

@bjester, @radinamatic

@marcellamaki marcellamaki added bug P0 - critical Priority: Release blocker or regression labels Jun 6, 2023
@bjester
Copy link
Member

bjester commented Jun 6, 2023

@pcenov Could you import resources from a different channel, and try again? CK-12 has some issues which don't popup on production, but do on hotfixes.

@pcenov
Copy link
Member Author

pcenov commented Jun 6, 2023

@bjester sure, I thought it was server related. Are all other channels a good game or there are some which should be avoided as well for this particular scenario?

@bjester
Copy link
Member

bjester commented Jun 6, 2023

@pcenov This is the only problematic channel that I recall, so others should be okay

@pcenov
Copy link
Member Author

pcenov commented Jun 7, 2023

Hi @bjester, yesterday I was able to publish a channel with more than 2K resources.
Today I tried with the following channel 9139ab6e91054da9bb708ea84fde3439 which I created by importing resources from Khan Academy US (about 5500 resources). So after about an hour and a half it had reached about 45% and then when I checked again it was showing Publishing channel 0%:

2023-06-07_18-04-00

I was testing in Chrome with the memory saver off. I tried refreshing the page and signing out and signing in but nothing changed. Then after about an hour when I looked again the status had changed to published.
So I confirm that publishing a large channel with resources which are not from CK-12 is working but my guess is that there are issues with the hotfixes server which are resulting in the above strange behavior.

@marcellamaki marcellamaki removed the P0 - critical Priority: Release blocker or regression label Jun 14, 2023
@bjester
Copy link
Member

bjester commented Jun 14, 2023

So I believe the issue @pcenov has found is the recurring 0% issue. I can only suspect that the task ID is getting wiped out after a certain amount of time, perhaps based of our fetch expiration, which sounds reasonable if the channel is large and takes a while to publish.

@vkWeb
Copy link
Member

vkWeb commented Jul 3, 2023

@bjester didn't we fixed a similar issue while back with celery's late acknowledgement? 🤔

@bjester bjester removed this from the Studio: Q2 2023 Release milestone Jul 5, 2023
@bjester
Copy link
Member

bjester commented Jul 5, 2023

@vkWeb I think the two issues likely produced similar symptoms, since they both involve lengthy publishing operations, but I don't believe this UI issue is directly caused by task issues

@vkWeb
Copy link
Member

vkWeb commented Jul 6, 2023

@bjester okay!

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

4 participants