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

Using SSH_AGENT_SOCK in a cron job won't work #1277

Open
Zarquan opened this issue Feb 7, 2024 · 0 comments
Open

Using SSH_AGENT_SOCK in a cron job won't work #1277

Zarquan opened this issue Feb 7, 2024 · 0 comments
Assignees

Comments

@Zarquan
Copy link
Collaborator

Zarquan commented Feb 7, 2024

I don't think this works.

job: "auth=$(ls -t /tmp/ssh-*/agent.* | head -n 1) && export SSH_AUTH_SOCK=$auth && python3 -c \"from yarncleaner import YarnCleaner; YarnCleaner(workers={{ groups['workers'] }}, ssh_username='{{ sshuser }}', ssh_key_file='/home/fedora/.ssh/{{ sshkeyname }}.pub').clean(threshold_percent={{ threshold_percent }})\""

It is also really difficult to read.

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

No branches or pull requests

2 participants