run: rerun deterministic callback (#2254)

* run: rerun deterministic callback

* test_run: refactor deterministic run tests to use pytest
This commit is contained in:
Paweł Redzyński
2019-07-14 02:25:13 +03:00
committed by Ruslan Kuprieiev
parent 2c2f573897
commit e8623a0c69
2 changed files with 60 additions and 56 deletions
+5 -1
View File
@@ -534,7 +534,11 @@ class Stage(object):
if validate_state:
if os.path.exists(path):
if not ignore_build_cache and stage.is_cached:
if (
not ignore_build_cache
and stage.is_cached
and not stage.is_callback
):
logger.info("Stage is cached, skipping.")
return None