-
Notifications
You must be signed in to change notification settings - Fork 861
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
Can't run cron jobs #344
Comments
@grantdobbe Unfortunately, we currently don't have support for background task execution. Please help us prioritize it by providing the feedback in our user voice page. I do see one related post, if you would like to up vote it. |
There is another issue: some normal userspace commands in linux are, for some reason, restricted to root, with no good reason (that is, it might make sense if the underlying NTFS filesystem prohibited it, which it usually doesn't). So even if cron background jobs worked, the current implementation denies permission for unprivileged users to use it. Lots of other things are in the same boat. So for example, if you do I'm not saying that cron is working, just that the crontab -e command is being denied to normal users without good reason. Making crontab work is thus, strictly speaking, a different issue. (In my opinion, there shouldn't be a question about it being a high priority.) |
sudo crontab -u $USER -e is a reasonable workaround. I'll upvote the cron support. |
@sunilmut wrote:
This is less than helpful for people who don't use UserVoice, but would like to see WSL support Microsoft already has, right here, a bug tracker for WSL. So, why ask people to go to UserVoice as well or instead? To fragment discussion? To increase the effort required, in the hope that people will give up instead of speaking up? |
@sampablokuper -
That was definitely not the intent. This bug tracker is good for tracking bugs, but, it's difficult to do a consolidated voting based feature request here (nothing that I am aware of). If you have any feedback on how we take feature requests for WSL, please feel free to also reach out to @tara-raj We actually look at our user voice page on feature requests. As for this particular request to support background tasks, that was added recently. See here. Hopefully that clarifies few things here. We appreciate all feedback! |
@sunilmut wrote:
Good to have that confirmed :) (Microsoft's track record re: user feedback, averaged over the last couple of decades, has, sadly, warranted the level of scepticism you can see in my comment above :/ )
Is it? Enough to warrant fragmenting the "official" discussion threads across at least three different websites (GtiHub, UserVoice, Microsoft forums) run by three different companies? Why not migrate the UserVoice feature requests to GitHub, ditch UserVoice, and then e.g. sort on the number of thumbs up per bug report in order to see which issues/features seem most wanted by the user base?
Hi, @tara-raj . Done :)
Thanks for the link. That is progress, but there's a long way to go until the behaviour as a whole is really |
The OP in this issue was:
This is because The issue was marked as 'feature' because at the time WSL did not support background tasks. This was addressed in Insider 17046 and will hit the Spring Update RSN. You can start
If anyone finds any further problems with |
Fixed in release 1803. You can read more about how to do this in our blog post on background tasks |
When trying to add a recurring job to my crontab, I get the following message:
I'm able to work around the issue by using Task Scheduler to call bash.exe with the script I wanted to run, but that seems kludgy. A lot of applications depend on cron to run routine maintenance tasks, and having to set them up in Task Scheduler is sub-optimal.
The text was updated successfully, but these errors were encountered: