Open pavelsr opened 5 years ago
If you try to download latest version of wenbinf/ndscheduler, somehow you get not the same as you see in this git.
I've re-downloaded image 3 times and all 3 times I got same string in original shell_job.py:
from ndscheduler import job
instead of
from ndscheduler.corescheduler import job
All of 5 classes have this import:
apns_job.py: from ndscheduler import job
curl_job.py: from ndscheduler import job
sample_job.py: from ndscheduler import job
shell_job.py: from ndscheduler import job
slack_job.py: from ndscheduler import job
Thus, your solution is simple: Replace from ndscheduler.coresheduler import job
to from ndscheduler import job
in your shell_job.py
@tvoikoteika228 you are absolutely right
$ docker run -it wenbinf/ndscheduler bash -c "cd /mnt/scheduler/src/ndscheduler/.git && git log -1"
commit 5b1f5bf62c5cb6e247ad45a5b2acd50723fd87c3
Author: Aaron Webber <1557636+sabw8217@users.noreply.github.com>
Date: Fri Dec 14 15:42:07 2018 -0800
Remove reference to LLVM.
It's not like LLVM.
So docker version is corresponding to commit 5b1f5bf62c5cb6e247ad45a5b2acd50723fd87c3, made 15 Dec 2018
And latest commit in master branch is c7100c02a8df3998ca882865b1b902d8951b764b
( Aug 23, 2019 )
I'd like to implement custom job class (same as ShellJob but which run only once)
I made a class:
and run NDScheduler using docker-compose like:
After that I get at http://localhost:8888/
Could you please explain me why such happened?
My module has same import
from ndscheduler.corescheduler import job
sting as original ShellJobP.S. Even if I mount same ShellJob module with same content inside
wenbinf/ndscheduler
container I got same error.