mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-25 19:21:09 +00:00
11 lines
220 B
Python
11 lines
220 B
Python
import os, frappe
|
|
from frappe.utils.background_jobs import start_worker
|
|
|
|
def main():
|
|
queue = os.environ.get("WORKER_TYPE", "default")
|
|
start_worker(queue, False)
|
|
exit(0)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|