Skip to content

Instantly share code, notes, and snippets.

@MikeRzhevsky
Created April 21, 2022 14:09
Show Gist options
  • Save MikeRzhevsky/3c50cdaff0079f6717eb45a865d2443a to your computer and use it in GitHub Desktop.
Save MikeRzhevsky/3c50cdaff0079f6717eb45a865d2443a to your computer and use it in GitHub Desktop.
from dagster import job, op, Failure, sensor, RunRequest
from test_job import test_job
from dagster_celery import celery_executor
from dagster.core.storage.pipeline_run import (
RunsFilter,
PipelineRunStatus,
)
@op
def run_test_job(context):
context.log.info(f'Hello!')
@job(executor_def=celery_executor)
def run_job():
run_test_job()
if __name__ == "__main__":
result = run_job.execute_in_process()
@MikeRzhevsky
Copy link
Author

2022-04-21_17-10-11

@MikeRzhevsky
Copy link
Author

dagster.core.errors.DagsterImportError: Encountered ImportError: No module named 'test_job' while importing module repo from file /opt/dagster/app/repo.py. Local modules were resolved using the working directory /opt/dagster/app. If another working directory should be used, please explicitly specify the appropriate path using the -d or --working-directory for CLI based targets or the working_directory configuration option for python_file-based workspace targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment