Skip to content

Commit

Permalink
revert _background_job
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 28, 2024
1 parent a417cf5 commit 8621c90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config.dev.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ samples_per_second=0.2

pd_reference_ema=0.4

ir_led_intensity=80
ir_led_intensity=auto

# use the most recent calibration file, if available
use_calibration=1
Expand Down
6 changes: 3 additions & 3 deletions pioreactor/background_jobs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class _BackgroundJob(metaclass=PostInitCaller):

# initial state is disconnected, set other metadata
state = DISCONNECTED
job_name = "_background_job" # this should be overwritten in subclasses
job_name = "background_job" # this should be overwritten in subclasses
_is_cleaned_up = False # mqtt connections closed, JM cache is empty, logger closed, etc.
_IS_LONG_RUNNING = False # by default, jobs aren't long running (persistent over experiments)

Expand Down Expand Up @@ -1001,7 +1001,7 @@ class BackgroundJobContrib(_BackgroundJob):

def __init_subclass__(cls, **kwargs):
super().__init_subclass__(**kwargs)
if cls.job_name == "_background_job":
if cls.job_name == "background_job":
raise NameError(f"must provide a job_name property to this BackgroundJob class {cls}.")

def __init__(self, unit: str, experiment: str, plugin_name: str) -> None:
Expand Down Expand Up @@ -1205,7 +1205,7 @@ class BackgroundJobWithDodgingContrib(BackgroundJobWithDodging):

def __init_subclass__(cls, **kwargs):
super().__init_subclass__(**kwargs)
if cls.job_name == "_background_job":
if cls.job_name == "background_job":
raise NameError(f"must provide a job_name property to this BackgroundJob class {cls}.")

def __init__(self, unit: str, experiment: str, plugin_name: str) -> None:
Expand Down

0 comments on commit 8621c90

Please sign in to comment.