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

Gdown does not download when called asynchronously (EC2 Ruby on Rails) #348

Closed
Kaushik-Iyer-skima opened this issue Apr 25, 2024 · 2 comments
Labels
bug for issue

Comments

@Kaushik-Iyer-skima
Copy link

Kaushik-Iyer-skima commented Apr 25, 2024

Provide environment information

Python3.8.10

What OS are you using?

Ubuntu 20.04.6

Describe the Bug

When I call a sidekiq job through my ruby on rails application synchronously, the file gets downloaded (I run gdown --fuzzy --id {file_id} -O {file_name}). The same job, with same parameters, in the same machine, when called asynchronously (perform_async), gdown doesnt download, neither is an error being thrown.

Expected Behavior

Downloading should happen even when called asynchronously

To Reproduce

Create a job in ruby on rails that performs system call to gdown download anything. Call it synchronously and asynchronously and see changes

@Kaushik-Iyer-skima Kaushik-Iyer-skima added the bug for issue label Apr 25, 2024
@Kaushik-Iyer-skima
Copy link
Author

i get 'gdown not found' when I run async, no errors when i run the same command in sync

@Kaushik-Iyer-skima
Copy link
Author

The issue was that I performed pip install without sudo, so sidekiq could not get the local user installation of gdown. After installing using sudo, this is no longer an issue now

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

No branches or pull requests

1 participant