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

Question About Elapsed Job Time #781

Open
yasin-ahlatci opened this issue Jul 8, 2024 · 2 comments
Open

Question About Elapsed Job Time #781

yasin-ahlatci opened this issue Jul 8, 2024 · 2 comments

Comments

@yasin-ahlatci
Copy link

Summary

I'm running some php scripts in my cronicle instance. Events are completed exactly on 59 seconds or 60 seconds. But some of them should be less than 10 secs to complete and some of them should more than 3 minutes. I'm not sure if this is a misconfiguration or error. But I couldn't find anything
Event Configurations;

  • Shell plugin
  • Detached mode

Example event script

#!/bin/bash
set -e
php <somephpscriptdir>

Steps to reproduce the problem

Create an event with given configuration, then run the event.

Your Setup

I'm running 1 master 2 worker instances with S3 storage configuration.

Operating system and version?

Ubuntu 22.04

Node.js version?

20.15.0

Cronicle software version?

0.9.52

Are you using a multi-server setup, or just a single server?

Multi server, but single-master

Are you using the filesystem as back-end storage, or S3/Couchbase?

S3

@jhuckaby
Copy link
Owner

jhuckaby commented Jul 8, 2024

You're using "detached mode", which comes with some big tradeoffs. One of which is, job completion is only checked every minute, not in real time. This is because the processes are entirely detached, and Cronicle monitors them by polling a status file every minute.

Read about the tradeoffs of detached mode here: https://github.com/jhuckaby/Cronicle/blob/master/docs/WebUI.md#detached-mode

@yasin-ahlatci
Copy link
Author

yasin-ahlatci commented Jul 8, 2024

Thank you, that explains it all. I missed it somehow

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