HomePhabricator

Fix python3 bug with cron schedule script

Authored by Sashank Thupukari <s@thupukari.com> on Aug 23 2019, 12:19 AM.

Description

Fix python3 bug with cron schedule script

Summary: Previously, the dagster-graphql path was resolved by simply replacing /bin/python with /bin/dagster-graphql. However, when the executable is named /bin/python3, the dagster-graphql path was incorrectly resolved as /bin/dagster-graphql3. This diff uses os.path.dirname to support any executable name for python

Test Plan: unit

Reviewers: #ft, natekupp

Reviewed By: #ft, natekupp

Differential Revision: https://dagster.phacility.com/D879

Details

Committed
Sashank Thupukari <s@thupukari.com>Aug 23 2019, 12:47 AM
Reviewer
Restricted Project
Differential Revision
D879: Fix python3 bug with cron schedule script
Parents
R1:f6f7aecfd63a: Set environment variables on ScheduleDefinition
Branches
Unknown
Tags
Unknown