<reponame>amosproj/amos-ss2020-metadata-hub<gh_stars>1-10
"""Definition of commands that are shared between different modules."""


# Return information about the current execution
MANAGER_INFO = 'info'

# Stop the current execution
MANAGER_STOP = 'stop'

# Start a new execution
MANAGER_START = 'start'

# Pause a currently running execution
MANAGER_PAUSE = 'pause'

# Continue a paused execution
MANAGER_UNPAUSE = 'unpause'

# Shutdown the manager
MANAGER_SHUTDOWN = 'shutdown'

# OK response from the manager
MANAGER_OK = 'ok'

# New work package for worker
WORKER_PACKAGE = 'work'

# Pause the worker
WORKER_PAUSE = 'pause'

# Continue the worker
WORKER_UNPAUSE = 'unpause'

# Stop the worker
WORKER_STOP = 'stop'

# Signal the worker to finish
WORKER_FINISH = 'finish'

# Status for database when crawl was stopped
CRAWL_STATUS_ABORTED = 'aborted'

# Status for database when crawl was stopped
CRAWL_STATUS_PAUSED = 'paused'

# Status for database when crawl is running
CRAWL_STATUS_RUNNING = 'running'

# Status for database when crawl is finished
CRAWL_STATUS_FINISHED = 'finished'

# Shutdown the database updater
DATABASE_UPDATER_SHUTDOWN = 'shutdown'

# Add execution to scheduler
SCHEDULER_ADD_CONFIG = 'add-config'

# Remove configuration from scheduler
SCHEDULER_REMOVE_CONFIG = 'remove-config'

# Get scheduled executions from scheduler
SCHEDULER_GET_SCHEDULE = 'get-schedule'

# Shutdown the scheduler
SCHEDULER_SHUTDOWN = 'shutdown'

# Add a interval for max resource consumption
SCHEDULER_ADD_INTERVAL = 'add-interval'

# Remove a interval for max resource consumption
SCHEDULER_REMOVE_INTERVAL = 'remove-interval'

# Get all intervals for max resource consumption
SCHEDULER_GET_INTERVALS = 'get-intervals'

"""Definition of commands that are shared between different modules."""


# Return information about the current execution
MANAGER_INFO = 'info'

# Stop the current execution
MANAGER_STOP = 'stop'

# Start a new execution
MANAGER_START = 'start'

# Pause a currently running execution
MANAGER_PAUSE = 'pause'

# Continue a paused execution
MANAGER_UNPAUSE = 'unpause'

# Shutdown the manager
MANAGER_SHUTDOWN = 'shutdown'

# OK response from the manager
MANAGER_OK = 'ok'

# New work package for worker
WORKER_PACKAGE = 'work'

# Pause the worker
WORKER_PAUSE = 'pause'

# Continue the worker
WORKER_UNPAUSE = 'unpause'

# Stop the worker
WORKER_STOP = 'stop'

# Signal the worker to finish
WORKER_FINISH = 'finish'

# Status for database when crawl was stopped
CRAWL_STATUS_ABORTED = 'aborted'

# Status for database when crawl was stopped
CRAWL_STATUS_PAUSED = 'paused'

# Status for database when crawl is running
CRAWL_STATUS_RUNNING = 'running'

# Status for database when crawl is finished
CRAWL_STATUS_FINISHED = 'finished'

# Shutdown the database updater
DATABASE_UPDATER_SHUTDOWN = 'shutdown'

# Add execution to scheduler
SCHEDULER_ADD_CONFIG = 'add-config'

# Remove configuration from scheduler
SCHEDULER_REMOVE_CONFIG = 'remove-config'

# Get scheduled executions from scheduler
SCHEDULER_GET_SCHEDULE = 'get-schedule'

# Shutdown the scheduler
SCHEDULER_SHUTDOWN = 'shutdown'

# Add a interval for max resource consumption
SCHEDULER_ADD_INTERVAL = 'add-interval'

# Remove a interval for max resource consumption
SCHEDULER_REMOVE_INTERVAL = 'remove-interval'

# Get all intervals for max resource consumption
SCHEDULER_GET_INTERVALS = 'get-intervals'
Definition of commands that are shared between different modules. # Return information about the current execution # Stop the current execution # Start a new execution # Pause a currently running execution # Continue a paused execution # Shutdown the manager # OK response from the manager # New work package for worker # Pause the worker # Continue the worker # Stop the worker # Signal the worker to finish # Status for database when crawl was stopped # Status for database when crawl was stopped # Status for database when crawl is running # Status for database when crawl is finished # Shutdown the database updater # Add execution to scheduler # Remove configuration from scheduler # Get scheduled executions from scheduler # Shutdown the scheduler # Add a interval for max resource consumption # Remove a interval for max resource consumption # Get all intervals for max resource consumption