Open ebak opened 8 years ago
I see. the problem is that dumpdb
doesnt read dodo.py
at all.
I like the fact that you can see the dump even without a dodo.py
.
Do you know you can specify the name of the DB file from the command line?
Hi,
I don't know currently the command line argument for the DB file name. In my case I don't use dodo.py. I execute the engine directly with "doit.run(globals())" in this case the engine gets the DOIT_CONFIG dict, which contains the DB file name. I guess for my case I could make a work-around. In delayed.py I could add the DB file name command line argument to "sys.argv" than execute "doit.run(globals())".
When running in an IPython (notebook) context as %doit dumpdb
, a custom dep_file
in a DOIT_CONFIG
dictionary I might define does not seem to be taken into account. I find this highly confusing, especially because in the notebook context, it's not quite clear where the database is stored. The dumpdb
commands seems to report on ~/.ipython/profile_default/db/.doit.db
, but I'm not sure that's the file that is actually being used when running tasks. The dumpdb
should print the name of the database file that it's reading from, not just the type of the database.
The dumpdb should print the name of the database file that it's reading from, not just the type of the database.
So maybe you should create another ticket for this.
I would accept a patch where dumpdb
reads a dodo.py
and get the value of file_dep
, but it must still be able to work without a dodo.py
file.
Done (#183). If I have some time at some point in the near future, I might look into making such a pull request.
dumpdb
does not takedep_file
configuration into account because it does not read (or require adodo.py
). It would be better to usedep_file
information if available.Original report: