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

epilogue not working #260

Open
lifetooeasy opened this issue Feb 2, 2023 · 3 comments
Open

epilogue not working #260

lifetooeasy opened this issue Feb 2, 2023 · 3 comments
Labels

Comments

@lifetooeasy
Copy link

Bug description

It seems that epilogue is not working after stopping the notebook. I set up the epilogue parameter in the configuration file like this:

c.SlurmSpawner.req_epilogue = """!/bin/bash echo 'hostname'""" (just an example). I am able to see the command in jupyterhub log after cmd but nothing happens.

Expected behaviour

run epilogue after stopping the notebook.

Actual behaviour

Your personal set up

  • OS: CentOS 8
  • Version(s):
  • jupyterhub 1.5.0
  • batchspawner 1.1.0
# jupyterhub_config.py
c.SlurmSpawner.req_epilogue = """!/bin/bash echo 'hostname'"""
@lifetooeasy lifetooeasy added the bug label Feb 2, 2023
@welcome
Copy link

welcome bot commented Feb 2, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@mbmilligan
Copy link
Member

Hello! Would you try setting this variable like so instead:

c.SlurmSpawner.req_epilogue = "echo 'hostname'"

The req_epilogue variable is substituted into the Slurm script as-is after the cmd returns, it's not a separate script. The #!/bin/bash prefix is unnecessary, and results in the line being ignored as a comment.

@lifetooeasy
Copy link
Author

@mbmilligan it still not working. Just for information req_prologue works fine.
Can Slurm Admin restrict prologue/epilogue?

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

2 participants