Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From Plone 5.2.4 Error: unknown type name: 'clock-server' #10

Open
sauzher opened this issue Jul 3, 2023 · 2 comments
Open

From Plone 5.2.4 Error: unknown type name: 'clock-server' #10

sauzher opened this issue Jul 3, 2023 · 2 comments

Comments

@sauzher
Copy link

sauzher commented Jul 3, 2023

It seems that Zope won't start anymore if we try to use the <clock-server> directive in zope.conf

console reports

Error: unknown type name: 'clock-server'
(line 46 in file:///home/sauzher/buildouts/current5/parts/instance/etc/zope.conf)
For help, use /home/sauzher/buildouts/current5/bin/instance -h

zope.conf:

[...]
python-check-interval 1000
<clock-server>
    method /Plone/@@tick_hourly
    period 3600
    user zopeuser
    password 123123
    host localhost
</clock-server>
[...]
@gforcada
Copy link
Member

gforcada commented Jul 3, 2023

without looking at the implementation this add-on probably is relying on ZServer asynchronous server.

On the move to Python 3, the ZServer got bumped.

There is hope though, @datakurre has been working on using Twisted and have plone site on top of it. Then we could spin again an asynchronous server that could handle timed events, like this add-on expects 🎉

If all the above does not make sense, sorry! 😅

Something like this, my serve as a basis: https://github.com/collective/collective.taskqueue/blob/twisted/zope.tac

@sauzher
Copy link
Author

sauzher commented Jul 4, 2023

Thanks @gforcada! I was not aware of Zserver funcionality loss.
I think I'll rely on classic cron then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants