8000 Overlapping Freyja Runs · Issue #90 · PoonLab/gromstole · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Overlapping Freyja Runs #90

8000
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

Closed
GopiGugan opened this issue Apr 1, 2024 · 5 comments
Closed

Overlapping Freyja Runs #90

GopiGugan opened this issue Apr 1, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@GopiGugan
Copy link
Collaborator
GopiGugan commented Apr 1, 2024

Exception was raised even through freyja demix command ran successfully:

gromstole/freyja/trim.py

Lines 155 to 167 in cf5f290

p = subprocess.Popen(demix, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
_, error = p.communicate()
if p.returncode != 0:
if b'cvxpy.error.SolverError' in error:
sys.stderr.write(f"cvxpy.error.SolverError when running Freyja demix. Check coverage - ")
sys.stderr.write(f"{' '.join(demix)}\n")
else:
if sendemail:
send_error_notification(message="Error running {}".format(' '.join(demix)))
sys.stderr.write(f"Error running Freyja demix command - ")
sys.stderr.write(f"{' '.join(demix)}\n")
raise Exception(f"Subprocess failed with return code {p.returncode} when running {' '.join(demix)}")

Exception: Subprocess failed with return code 2 when running freyja demix

@GopiGugan GopiGugan added the bug Something isn't working label Apr 1, 2024
@GopiGugan
Copy link
Collaborator Author

Unable to reproduce:

>>> p = subprocess.Popen(demix, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>>> _, error = p.communicate()
>>> error
b''
>>> p.returncode
0

@GopiGugan
Copy link
Collaborator Author

The job at 12:45pm started before the 10:45am one completed. This error could have come as a result of a conflict

@GopiGugan
Copy link
Collaborator Author

Solution is in place to address this for the gromstole runs (#58). Need to use a similar solution for freya runs

@ArtPoon
Copy link
Contributor
ArtPoon commented Apr 2, 2024

To avoid this from happening in future runs, we should look into increasing the allocation of cores to this job so that it (hopefully) runs faster. Alternatively we can reduce the frequency of the cron job.

@GopiGugan GopiGugan changed the title Exception raised unnecessarily Overlapping Freyja Runs Apr 6, 2024
@GopiGugan
Copy link
Collaborator Author

To avoid this from happening in future runs, we should look into increasing the allocation of cores to this job so that it (hopefully) runs faster. Alternatively we can reduce the frequency of the cron job.

Script runs on 10 cores now instead of just 1 core

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

No branches or pull requests

2 participants
0